com.createsend.util.exceptions
Class CreateSendHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.createsend.util.exceptions.CreateSendException
com.createsend.util.exceptions.CreateSendHttpException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BadRequestException, NotFoundException, ServerErrorException, UnauthorisedException
public class CreateSendHttpException
- extends CreateSendException
An exception raised on any HTTP based error. i.e Status code >= 400
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CreateSendHttpException
public CreateSendHttpException(com.sun.jersey.api.client.ClientResponse.Status httpStatusCode)
CreateSendHttpException
public CreateSendHttpException(String message,
int httpStatusCode,
int apiErrorCode,
String apiErrorMessage)
getHttpStatusCode
public com.sun.jersey.api.client.ClientResponse.Status getHttpStatusCode()
- Returns:
- The HTTP Status code from the failed request
getApiErrorMessage
public String getApiErrorMessage()
- Returns:
- The API Error message from the failed request.
getApiErrorCode
public int getApiErrorCode()
- Returns:
- The API Error Code from the failed request.
Copyright © 2013. All Rights Reserved.