Package io.github.kaposke.exceptions
Class ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.kaposke.exceptions.ApiException
- All Implemented Interfaces:
Serializable
This is the base class for all exceptions that represent an error response from the server.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApiException(int code) ApiException(int code, String message) ApiException(String message) ApiException(String message, Throwable t) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiException
public ApiException(int code) -
ApiException
-
ApiException
-
ApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode()
-