public class ConnectorException extends RuntimeException
null
payload).Modifier and Type | Field and Description |
---|---|
static String |
NO_CODE
(empty) status code used if none is given
|
static String |
NO_MESSAGE
status message used if none is given
|
Constructor and Description |
---|
ConnectorException(String statusMessage) |
ConnectorException(String statusCode,
String statusMessage) |
ConnectorException(String statusCode,
String statusMessage,
Throwable cause) |
ConnectorException(String statusMessage,
Throwable cause) |
ConnectorException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
String |
getStatusCode() |
static String |
getStatusCode(Throwable t)
Gets a status code from the given Throwable.
|
String |
getStatusMessage() |
static String |
getStatusMessage(Throwable t)
Gets a status message from the given Throwable.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String NO_CODE
public static final String NO_MESSAGE
public ConnectorException(Throwable cause)
public ConnectorException(String statusMessage)
public String getStatusCode()
public String getStatusMessage()
public String getMessage()
getMessage
in class Throwable
public static String getStatusCode(Throwable t)
NO_CODE
.t
- Throwable to inspect, may be null
null
status codepublic static String getStatusMessage(Throwable t)
t
- Throwable to inspect, may be null
null
status message