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.GatewayTimeout,RestApiException.InternalServerError,RestApiException.MethodNotAllowed,RestApiException.NotFound,RestApiException.Unauthorized
A
RuntimeException that represents a http response.- Author:
- bjorncs
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionRestApiException(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
-