Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.58 KB

SDKException.md

File metadata and controls

47 lines (31 loc) · 2.58 KB

SDKException

extends Exception

This class is the common SDKException object. This stands as a POJO for the SDKException thrown.

Package com.zoho.crm.api.exception

Constructors

Constructor Description
SDKException(String code, String message, Exception cause) Creates an SDKException class instance with the specified parameters.
SDKException(String code, JSONObject details) Creates an SDKException class instance with the specified parameters.
SDKException(String code, String message) Creates an SDKException class instance with the specified parameters.
SDKException(String message, Exception cause) Creates an SDKException class instance with the specified parameters.
SDKException(Exception cause) Creates an SDKException class instance with the specified parameters.
SDKException(String code, String message, JSONObject details, Exception cause) Creates an SDKException class instance with the specified parameters.

code

A String containing the Exception error code.

message

A String containing the Exception error message.

cause

An Exception class instance.

details

A JSONObject containing the error response.

Methods

Return Type Method Description
String getCode() This is a getter method to get SDKException Code.
String getMessage() This is a getter method to get SDKException Message.
Throwable getCause() This is a getter method to get SDKException Cause.
JSONObject getDetails() This is a getter method to get SDKException Details.

source