refactoring and checkpoint

This commit is contained in:
DahoudG
2024-09-24 00:32:20 +00:00
parent dc73ba7dcc
commit 6b12cfeb41
159 changed files with 8119 additions and 1535 deletions

View File

@@ -27,3 +27,26 @@ class ServerExceptionWithMessage implements Exception {
String toString() => 'ServerException: $message';
}
class UserNotFoundException implements Exception {
final String message;
UserNotFoundException([this.message = "User not found"]);
@override
String toString() => "UserNotFoundException: $message";
}
class ConflictException implements Exception {
final String message;
ConflictException([this.message = "Conflict"]);
@override
String toString() => "ConflictException: $message";
}
class UnauthorizedException implements Exception {
final String message;
UnauthorizedException([this.message = "Unauthorized"]);
@override
String toString() => "UnauthorizedException: $message";
}