TetraStats/lib/services/crud_exceptions.dart

58 lines
1.4 KiB
Dart
Raw Normal View History

class DatabaseAlreadyOpen implements Exception {}
class DatabaseIsNotOpen implements Exception {}
class UnableToGetDocuments implements Exception {}
class CouldNotDeletePlayer implements Exception {}
class CouldNotDeleteMatch implements Exception {}
class CouldNotUpdatePlayer implements Exception {}
class TetrioPlayerAlreadyExist implements Exception {}
class TetrioPlayerNotExist implements Exception {}
class TetrioHistoryNotExist implements Exception {}
class TetrioTooManyRequests implements Exception {}
class TetrioForbidden implements Exception {}
class P1nkl0bst3rTooManyRequests implements Exception {}
class P1nkl0bst3rForbidden implements Exception {}
class SzyTooManyRequests implements Exception {}
class SzyForbidden implements Exception {}
class SzyNotFound implements Exception {}
2024-01-22 19:39:28 +00:00
class ReplayNotAvalable implements Exception {}
class TetrioReplayAlreadyExist implements Exception {}
class P1nkl0bst3rInternalProblem implements Exception {}
class SzyInternalProblem implements Exception {}
class TetrioOskwareBridgeProblem implements Exception {}
class TetrioInternalProblem implements Exception {}
class ConnectionIssue implements Exception {
const ConnectionIssue(this.code, this.message);
final int code;
final String message;
@override
String toString() {
String result = 'ConnectionIssue';
return '$result: $code $message';
}
}