public class ErrorHandler extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ErrorHandler.UnknownServerException
Exception used as a place holder if the server returns an error without a stack trace.
|
| 构造器和说明 |
|---|
ErrorHandler() |
ErrorHandler(boolean includeServerErrors) |
ErrorHandler(ErrorCodes codes,
boolean includeServerErrors) |
public ErrorHandler()
public ErrorHandler(boolean includeServerErrors)
includeServerErrors - Whether to include server-side details in thrown exceptions if the
information is available.public ErrorHandler(ErrorCodes codes, boolean includeServerErrors)
includeServerErrors - Whether to include server-side details in thrown exceptions if the
information is available.codes - The ErrorCodes object to use for linking error codes to exceptions.public boolean isIncludeServerErrors()
public void setIncludeServerErrors(boolean includeServerErrors)
public Response throwIfResponseFailed(Response response, long duration) throws RuntimeException
RuntimeException