2023-06-17 21:50:52 +00:00
|
|
|
class DatabaseAlreadyOpen implements Exception {}
|
|
|
|
|
|
|
|
class DatabaseIsNotOpen implements Exception {}
|
|
|
|
|
|
|
|
class UnableToGetDocuments implements Exception {}
|
|
|
|
|
|
|
|
class CouldNotDeletePlayer implements Exception {}
|
|
|
|
|
|
|
|
class CouldNotUpdatePlayer implements Exception {}
|
|
|
|
|
|
|
|
class TetrioPlayerAlreadyExist implements Exception {}
|
|
|
|
|
|
|
|
class TetrioPlayerNotExist implements Exception {}
|
2023-07-11 17:02:35 +00:00
|
|
|
|
|
|
|
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';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|