CustomException.fromParsingException constructor

CustomException.fromParsingException(
  1. 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',
  );
}