public class ResponseException extends OS4JException
Modifier and Type | Field and Description |
---|---|
protected int |
status |
Constructor and Description |
---|
ResponseException(String message,
int status) |
ResponseException(String message,
int status,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getStatus() |
static ResponseException |
mapException(String message,
int status)
Maps an Exception based on the underlying status code
|
static ResponseException |
mapException(String message,
int status,
Throwable cause)
Maps an Exception based on the underlying status code
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ResponseException(String message, int status)
public int getStatus()
public static ResponseException mapException(String message, int status)
message
- the messagestatus
- the statuspublic static ResponseException mapException(String message, int status, Throwable cause)
message
- the messagestatus
- the statuscause
- the causeCopyright © 2017. All rights reserved.