}
public ParseException getException() {
if (hasConnectionFailed()) {
return new ParseException(ParseException.CONNECTION_FAILED,
"Connection to Parse servers failed.");
}
if (!hasErrorCode()) {
return new ParseException(ParseException.OPERATION_FORBIDDEN,
"getException called with successful response");
}
JSONObject response = getJsonObject();
if (response == null) {
return new ParseException(ParseException.INVALID_JSON,
"Invalid response from Parse servers.");
}
return getParseError(response);
}