ApiException.custom constructor
ApiException.custom({
- required String message,
- ApiExceptionType type = ApiExceptionType.unknown,
- int? statusCode,
- dynamic originalError,
- StackTrace? stackTrace,
- Map<
String, dynamic> ? errorData,
Create custom ApiException
Implementation
factory ApiException.custom({
required String message,
ApiExceptionType type = ApiExceptionType.unknown,
int? statusCode,
dynamic originalError,
StackTrace? stackTrace,
Map<String, dynamic>? errorData,
}) {
return ApiException(
message: message,
type: type,
statusCode: statusCode,
originalError: originalError,
stackTrace: stackTrace,
errorData: errorData,
);
}