SimpleCloudNotifier/flutter/lib/api/api_exception.dart

14 lines
287 B
Dart
Raw Permalink 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-10-19 19:42:05 +02:00
final int errHighlight;
2024-06-02 17:09:57 +02:00
final String message;
APIException(this.httpStatus, this.error, this.errHighlight, this.message);
@override
String toString() {
return '[$error] $message';
}
}