Package com.sinch.sdk.core.exceptions
Class ApiAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sinch.sdk.core.exceptions.ApiException
com.sinch.sdk.core.exceptions.ApiAuthException
- All Implemented Interfaces:
Serializable
Exception related to server authentication
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionApiAuthException
(String message) Constructs an ApiAuthException with the specified detail message.ApiAuthException
(Throwable throwable) Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). -
Method Summary
Methods inherited from class com.sinch.sdk.core.exceptions.ApiException
getCode, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ApiAuthException
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables- Parameters:
throwable
- the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.0
-
ApiAuthException
Constructs an ApiAuthException with the specified detail message.- Parameters:
message
- the detail message.- Since:
- 1.0
-