public class TLfnServiceException extends Exception
Constructor and Description |
---|
TLfnServiceException(String aMessage,
int aResponseCode,
String aResponseReason,
Throwable aCause)
Creates a service exception with a given message, code and cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getResponseCode()
Gets the HTTP response code.
|
String |
getResponseReason()
Gets the HTTP response reason.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TLfnServiceException(String aMessage, int aResponseCode, String aResponseReason, Throwable aCause)
aMessage
- the message describing the service exceptionaResponseCode
- the exception code (defined as constants in this class)aResponseReason
- the reason for the exceptionaCause
- the Throwable that caused the exception.public String getResponseReason()
public int getResponseCode()