public class WebbException extends RuntimeException
Constructor and Description |
---|
WebbException(String message) |
WebbException(String message,
Response response) |
WebbException(String message,
Throwable cause) |
WebbException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Response |
getResponse()
Get the Response object
(only available if exception has been raised by
Request.ensureSuccess() . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WebbException(String message)
public WebbException(Throwable cause)
public Response getResponse()
Request.ensureSuccess()
.Response
object filled with error information like statusCode and errorBody.Copyright © 2016. All rights reserved.