Class TargomoClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.targomo.client.api.exception.TargomoClientException
All Implemented Interfaces:
ExceptionCode, Serializable

public class TargomoClientException extends Exception implements ExceptionCode
Excpetion thrown when there is an exception in a request to a Targomo API
See Also:
  • Constructor Details

    • TargomoClientException

      public TargomoClientException(String message, Throwable throwable)
      Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` response
      Parameters:
      message - Description of the exception
      throwable - cause of the exception
    • TargomoClientException

      public TargomoClientException(String message)
      Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` response
      Parameters:
      message - Description of the exception
    • TargomoClientException

      public TargomoClientException(String message, Throwable throwable, int httpStatusCode)
      Parameters:
      message - Description of the exception
      throwable - cause of the exception
      httpStatusCode - The exception will be translated into the response type that matches this code. Invalid codes will result in `BAD_GATEWAY` responses
    • TargomoClientException

      public TargomoClientException(String message, int httpStatusCode)
      Parameters:
      message - Description of the exception
      httpStatusCode - The exception will be translated into the response type that matches this code. Invalid codes will result in `BAD_GATEWAY` responses
  • Method Details