public class WvaHttpException extends Exception
Modifier and Type | Class and Description |
---|---|
static class |
WvaHttpException.WvaHttpBadRequest
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 400 response.
|
static class |
WvaHttpException.WvaHttpForbidden
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 403 response.
|
static class |
WvaHttpException.WvaHttpInternalServerError
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 500 response.
|
static class |
WvaHttpException.WvaHttpNotFound
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 404 response.
|
static class |
WvaHttpException.WvaHttpRequestUriTooLong
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 414 response.
|
static class |
WvaHttpException.WvaHttpServiceUnavailable
Exception passed through the library when an HTTP request to the WVA is met
with an HTTP 503 response.
|
Constructor and Description |
---|
WvaHttpException(String description,
String url,
String body)
Constructor for WvaHttpException.
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Returns the response body which was provided when this
WvaHttpException was created. |
String |
getMessage()
Returns a human-readable message describing this exception.
|
String |
getUrl()
Returns the request URL which was provided when this
WvaHttpException was created. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final String getBody()
WvaHttpException
was created.public final String getUrl()
WvaHttpException
was created.public final String getMessage()
getMessage
in class Throwable
"WvaHttpException: %s on %s. Body:%n%s" % description, url, body