In this SDK, API requests are made through SDK methods and API responses are returned as Java objects. All API requests would return one of the following objects:
All unexpected behaviors like faulty API responses and SDK anomalies are handled by the SDK and are indicated through the ZDeskException object. If a problem occurs while generating OAuth token or initializing the application, it is indicated through the ZohoOAuthException object.
If the response code to the API call is something other than a success code (2xx), exceptions, such as Unprocessable Entity exception and Bad Request exception, are returned. These exceptions are subclasses of the RuntimeException. Listed below are the exceptions supported in the SDK.