fbmobile/lib/core/error/rest_service_exception.dart
Varakh 7e871bb4b1
All checks were successful
/ build (push) Successful in 5m5s
Fix flutter lints for next major version #noissue
2023-11-14 20:22:12 +01:00

16 lines
385 B
Dart

import '../enums/error_code.dart';
import 'service_exception.dart';
class RestServiceException extends ServiceException {
final int statusCode;
final dynamic responseBody;
RestServiceException(this.statusCode, {this.responseBody, super.message = null})
: super(code: ErrorCode.restError);
@override
String toString() {
return "$code $statusCode $message";
}
}