Files
focusflow_shared/lib/src/constants/error_codes.dart
Oracle Public Cloud User 1363f7d12d Initial scaffold: FocusFlow shared Dart package
Models (Task, Streak, StreakEntry, Reward, User, TimeEstimate, CoworkingRoom, ApiResponse),
enums (EnergyLevel, TaskStatus, RewardType, RewardStyle),
constants (ApiConstants, ErrorCodes, AppLimits), validators, and generated .g.dart files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 15:50:26 +00:00

19 lines
885 B
Dart

class ErrorCodes {
ErrorCodes._();
static const String invalidCredentials = 'INVALID_CREDENTIALS';
static const String emailAlreadyExists = 'EMAIL_ALREADY_EXISTS';
static const String tokenExpired = 'TOKEN_EXPIRED';
static const String tokenInvalid = 'TOKEN_INVALID';
static const String unauthorized = 'UNAUTHORIZED';
static const String taskNotFound = 'TASK_NOT_FOUND';
static const String streakNotFound = 'STREAK_NOT_FOUND';
static const String noTasksAvailable = 'NO_TASKS_AVAILABLE';
static const String roomFull = 'ROOM_FULL';
static const String roomNotFound = 'ROOM_NOT_FOUND';
static const String validationError = 'VALIDATION_ERROR';
static const String notFound = 'NOT_FOUND';
static const String internalError = 'INTERNAL_ERROR';
static const String rateLimited = 'RATE_LIMITED';
static const String premiumRequired = 'PREMIUM_REQUIRED';
}