kmobile/lib/core/errors/exceptions.dart

20 lines
399 B
Dart

class AppException implements Exception {
final String message;
AppException(this.message);
@override
String toString() => message;
}
class NetworkException extends AppException {
NetworkException(super.message);
}
class AuthException extends AppException {
AuthException(super.message);
}
class UnexpectedException extends AppException {
UnexpectedException(super.message);
}