initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
16
lib/core/error/exception.dart
Normal file
16
lib/core/error/exception.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/// Exception class for server error
|
||||
/// Generally, this exception is thrown when the server returns an error response
|
||||
class ServerException implements Exception {
|
||||
const ServerException(this.message);
|
||||
|
||||
final String message;
|
||||
}
|
||||
|
||||
/// Exception class for unauthorized client error
|
||||
/// this exception is thrown when the client is not authorized
|
||||
/// to access the resource (server returns 401)
|
||||
class UnauthorizedException implements Exception {
|
||||
const UnauthorizedException(this.message);
|
||||
|
||||
final String message;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue