Class SendlyException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, InsufficientCreditsException, NetworkException, NotFoundException, RateLimitException, ValidationException

public class SendlyException extends RuntimeException
Base exception for all Sendly errors.
See Also:
  • Constructor Details

    • SendlyException

      public SendlyException(String message)
    • SendlyException

      public SendlyException(String message, int statusCode)
    • SendlyException

      public SendlyException(String message, int statusCode, String errorCode)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Get the HTTP status code.
    • getErrorCode

      public String getErrorCode()
      Get the error code.