CustomException.fromParsingException constructor
CustomException.fromParsingException(
- Exception error
Implementation
factory CustomException.fromParsingException(Exception error) {
debugPrint('$error');
return CustomException(
exceptionType: _ExceptionType.SerializationException,
message: 'Failed to parse network response to model or vice versa',
);
}