15 lines
398 B
Dart
15 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";
|
|
}
|
|
}
|