Files
Hacki/lib/models/app_exception.dart
2023-12-07 23:24:43 -08:00

16 lines
347 B
Dart

typedef AppExceptionHandler = void Function(AppException);
class AppException implements Exception {
AppException({
required this.message,
this.stackTrace,
});
final String message;
final StackTrace? stackTrace;
}
class RateLimitedException extends AppException {
RateLimitedException() : super(message: 'Rate limited...');
}