public class RequestException extends RuntimeException
| Constructor and Description |
|---|
RequestException(RequestError error)
Creates an instance with an underlying error.
|
RequestException(RequestError error,
String message)
Creates an instance with an underling error and a custom message.
|
RequestException(RequestError error,
Throwable cause)
Creates an instance with an underlying error and an underlying cause
|
RequestException(RequestError error,
Throwable cause,
String message)
Creates an instance with an underlying error, an underlying cause, and an underlying message.
|
| Modifier and Type | Method and Description |
|---|---|
RequestError |
error()
Returns the underlying error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RequestException(RequestError error)
error - the errorpublic RequestException(RequestError error, String message)
message - the messageerror - the errorpublic RequestException(RequestError error, Throwable cause)
error - the errorcause - the cause;public RequestException(RequestError error, Throwable cause, String message)
error - the errorcause - the cause;public RequestError error()
Copyright © 2014. All Rights Reserved.