fbmobile/lib/core/error/rest_service_exception.dart
Varakh b55e932204
All checks were successful
continuous-integration/drone/push Build is passing
Added proper linting #noissue
2023-01-04 21:17:54 +01:00

16 lines
398 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, String? message})
: super(code: ErrorCode.restError, message: message);
@override
String toString() {
return "$code $statusCode $message";
}
}