Package com.yahoo.restapi
Class RestApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.yahoo.restapi.RestApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RestApiException.BadRequest
,RestApiException.Conflict
,RestApiException.Forbidden
,RestApiException.InternalServerError
,RestApiException.MethodNotAllowed
,RestApiException.NotFound
,RestApiException.Unauthorized
A
RuntimeException
that represents a http response.- Author:
- bjorncs
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
ConstructorDescriptionRestApiException
(int statusCode, String errorType, String message) RestApiException
(int statusCode, String errorType, String message, Throwable cause) RestApiException
(HttpResponse response, String message) RestApiException
(HttpResponse response, String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestApiException
-
RestApiException
-
RestApiException
-
RestApiException
-
-
Method Details
-
statusCode
public int statusCode() -
response
-