Package com.sendly.exceptions
Class SendlyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sendly.exceptions.SendlyException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException,InsufficientCreditsException,NetworkException,NotFoundException,RateLimitException,ValidationException
Base exception for all Sendly errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSendlyException(String message) SendlyException(String message, int statusCode) SendlyException(String message, int statusCode, String errorCode) -
Method Summary
Modifier and TypeMethodDescriptionGet the error code.intGet the HTTP status code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SendlyException
-
SendlyException
-
SendlyException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Get the HTTP status code. -
getErrorCode
Get the error code.
-