Package com.targomo.client.api.exception
Class TargomoClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.targomo.client.api.exception.TargomoClientException
- All Implemented Interfaces:
ExceptionCode,Serializable
Excpetion thrown when there is an exception in a request to a Targomo API
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTargomoClientException(String message) Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` responseTargomoClientException(String message, int httpStatusCode) TargomoClientException(String message, Throwable throwable) Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` responseTargomoClientException(String message, Throwable throwable, int httpStatusCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TargomoClientException
Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` response- Parameters:
message- Description of the exceptionthrowable- cause of the exception
-
TargomoClientException
Uses default httpStatusCode and will be translated into a `BAD_GATEWAY` response- Parameters:
message- Description of the exception
-
TargomoClientException
- Parameters:
message- Description of the exceptionthrowable- cause of the exceptionhttpStatusCode- The exception will be translated into the response type that matches this code. Invalid codes will result in `BAD_GATEWAY` responses
-
TargomoClientException
- Parameters:
message- Description of the exceptionhttpStatusCode- The exception will be translated into the response type that matches this code. Invalid codes will result in `BAD_GATEWAY` responses
-
-
Method Details
-
getCode
- Specified by:
getCodein interfaceExceptionCode
-