SimpleCloudNotifier/flutter/lib/api/api_exception.dart

14 lines
290 B
Dart
Raw Normal View History

2024-06-02 17:09:57 +02:00
class APIException implements Exception {
final int httpStatus;
2024-06-07 23:44:32 +02:00
final int error;
2024-06-02 17:09:57 +02:00
final String errHighlight;
final String message;
APIException(this.httpStatus, this.error, this.errHighlight, this.message);
@override
String toString() {
return '[$error] $message';
}
}