public class RequestException
extends org.mule.runtime.extension.api.exception.ModuleException
implements org.mule.runtime.api.exception.ErrorMessageAwareException
ModuleException to be raised when a request fails.
Because the HTTP protocol also emits responses when the request fails, this exception carries the
error response by implementing the ErrorMessageAwareException. The response is accessible through
the getErrorMessage() method.
| Constructor and Description |
|---|
RequestException(RestError error,
org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> response)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.Message |
getErrorMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RequestException(RestError error, org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> response)
error - the error typeresponse - the obtained responseCopyright © 2021. All rights reserved.