handleException function Null safety

  1. @protected
ParseResponse handleException(
  1. Exception exception,
  2. ParseApiRQ type,
  3. bool debug,
  4. String className
)

Handles an API response and logs data if bool debug is enabled

Implementation

@protected
ParseResponse handleException(
    Exception exception, ParseApiRQ type, bool debug, String className) {
  final ParseResponse parseResponse =
      buildParseResponseWithException(exception);

  if (debug) {
    logAPIResponse(className, type.toString(), parseResponse);
  }

  return parseResponse;
}