| Package | Description |
|---|---|
| com.mulesoft.connectivity.rest.commons.api.connection | |
| com.mulesoft.connectivity.rest.commons.api.error |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<org.mule.runtime.extension.api.error.ErrorTypeDefinition<RestError>> |
DefaultRestConnection.httpResponseToErrorTypeDefinition(org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse,
org.mule.runtime.api.metadata.MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.runtime.extension.api.exception.ModuleException |
DefaultRestConnection.createModuleException(org.mule.runtime.http.api.domain.message.response.HttpResponse httpResponse,
org.mule.runtime.extension.api.error.ErrorTypeDefinition<RestError> errorTypeDefinition,
org.mule.runtime.api.metadata.MediaType defaultMediaType) |
| Modifier and Type | Method and Description |
|---|---|
static RestError |
RestError.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestError[] |
RestError.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<org.mule.runtime.extension.api.error.ErrorTypeDefinition<RestError>> |
RestError.getErrorTypeDefinitionByStatusCode(int statusCode)
Returns the
RestError corresponding to a given status code. |
Copyright © 2023. All rights reserved.