Client Exception
ClientException class wraps exception and throwable across the code base. We encourage to use this class when dealing with Http Error response or throwing exceptions .
Parameters
the API code returned e.g 500, 400
The error returned as a Json string.
the message related to this Exception.
the cause related to this exception.
the string error type returned from API/ e.g INVALID_USERNAME_PASSWORD
Properties
Functions
provides a safe casting of throwable converts any throwable into a ClientException. Clients don't need to perform casting as its handled on the SDK level.
provides a safe suspended casting of throwable converts any throwable into a ClientException. Clients don't need to perform casting as its handled on the SDK level.
Converts a ClientException into an NSError object for better interop with Objective-C, Swift projects.