Files
SimpleCloudNotifier/flutter/lib/api/api_exception.dart

15 lines
329 B
Dart

class APIException implements Exception {
final int httpStatus;
final int error;
final int errHighlight;
final String message;
final bool toastShown;
APIException(this.httpStatus, this.error, this.errHighlight, this.message, this.toastShown);
@override
String toString() {
return '[$error] $message';
}
}