Package com.sinch.sdk.core.exceptions
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.sinch.sdk.core.exceptions.ApiException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiAuthException,ApiMappingException
public class ApiException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()ApiException(int code, String message)ApiException(String message)ApiException(String message, int code)ApiException(String message, Throwable throwable)ApiException(String message, Throwable throwable, int code)ApiException(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the HTTP status code.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-