buildParseResponseWithException function

ParseResponse buildParseResponseWithException(
  1. Exception exception
)

Handles exception instead of throwing an exception

Implementation

ParseResponse buildParseResponseWithException(Exception exception) {
  final ParseResponse response = ParseResponse();
  response.error =
      ParseError(message: exception.toString(), exception: exception);
  return response;
}