MobileEasyCook/easycook_mobile/lib/repositories/Exception.dart
2024-12-31 09:53:57 +07:00

15 lines
296 B
Dart

class ApiException implements Exception {
final _message;
final _prefix;
ApiException([this._message, this._prefix = ""]);
String toString() {
return "$_prefix$_message";
}
}
class GeneralException extends ApiException {
GeneralException([String? message]) : super(message);
}