11111
This commit is contained in:
18
lib/core/error/exceptions.dart
Normal file
18
lib/core/error/exceptions.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
class ServerException implements Exception {
|
||||
final String message;
|
||||
final int? statusCode;
|
||||
|
||||
ServerException({required this.message, this.statusCode});
|
||||
}
|
||||
|
||||
class NetworkException implements Exception {
|
||||
final String message;
|
||||
|
||||
NetworkException({required this.message});
|
||||
}
|
||||
|
||||
class ValidationException implements Exception {
|
||||
final String message;
|
||||
|
||||
ValidationException({required this.message});
|
||||
}
|
||||
Reference in New Issue
Block a user