fbmobile/lib/core/enums/error_code.dart

16 lines
256 B
Dart
Raw Permalink Normal View History

2021-02-02 14:33:23 +00:00
/// Enums for error codes
enum ErrorCode {
/// A generic error
2023-01-04 20:17:54 +00:00
generalError,
2021-02-02 14:33:23 +00:00
/// Errors related to connections
2023-01-04 20:17:54 +00:00
socketError,
socketTimeout,
2021-02-02 14:33:23 +00:00
/// A REST error (response code wasn't 200 or 204)
2023-01-04 20:17:54 +00:00
restError,
/// Custom errors
2023-01-04 20:17:54 +00:00
invalidApiKey
2021-02-02 14:33:23 +00:00
}