fbmobile/lib/core/error/rest_service_exception.dart

15 lines
386 B
Dart
Raw Normal View History

2021-02-02 14:33:23 +00:00
import '../enums/error_code.dart';
import 'service_exception.dart';
class RestServiceException extends ServiceException {
final int statusCode;
final dynamic responseBody;
RestServiceException(this.statusCode, {this.responseBody, String message})
: super(code: ErrorCode.REST_ERROR, message: message);
String toString() {
return "$code $statusCode $message";
}
}