public final class StatusCodeHTTPCallException extends HTTPCallException
| Constructor and Description |
|---|
StatusCodeHTTPCallException(HTTPCallRequest request,
TargetDescriptor target,
long duration,
int code,
String detail)
Constructs a new
StatusCodeHTTPCallException based on the original request,
target called, call duration and HTTP status code. |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Returns the HTTP status code.
|
getDetail, getDuration, getMessage, getNext, getRequest, getTarget, isFailOverAllowedaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StatusCodeHTTPCallException(HTTPCallRequest request, TargetDescriptor target, long duration, int code, String detail) throws IllegalArgumentException
StatusCodeHTTPCallException based on the original request,
target called, call duration and HTTP status code.request - the original request, cannot be null.target - descriptor for the target that was attempted to be called, cannot be null.duration - the call duration in milliseconds, must be >= 0.code - the HTTP status code.IllegalArgumentException - if request == null
|| target == null
|| duration < 0.See http://www.xins.org/.