public class ApiException extends HawaiiException
| Modifier | Constructor and Description |
|---|---|
protected |
ApiException(ApiError apiError)
Construct an API error.
|
protected |
ApiException(ApiError apiError,
String message)
Construct an API error with a custome message.
|
protected |
ApiException(ApiError apiError,
Throwable orig)
Construct an API error from a Throwable.
|
protected |
ApiException(ApiError apiError,
Throwable orig,
String message)
Construct an API error from a Throwable with a custom message.
|
| Modifier and Type | Method and Description |
|---|---|
ApiError |
getApiError()
Getter for the ApiError.
|
String |
getErrorCode()
Convenience method to retrieve the error code from the contained API error.
|
String |
getReason()
Convenience method to retrieve the reason from the contained API error.
|
getCausingHawaiiExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected ApiException(ApiError apiError)
apiError - the error code.protected ApiException(ApiError apiError, String message)
apiError - the error code.protected ApiException(ApiError apiError, Throwable orig)
apiError - the error codeorig - the cause of the errorpublic ApiError getApiError()
public String getErrorCode()
public String getReason()