public static class ErrorTypeLocator.Builder extends Object
ErrorTypeLocator| Constructor and Description |
|---|
Builder(ErrorTypeRepository errorTypeRepository)
Creates a builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorTypeLocator.Builder |
addComponentExceptionMapper(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier,
ExceptionMapper exceptionMapper)
Adds an
ExceptionMapper for a particular component identified by the componentIdentifier. |
ErrorTypeLocator |
build()
Builds an
ErrorTypeLocator instance with the provided configuration. |
ErrorTypeLocator.Builder |
defaultError(org.mule.runtime.api.message.ErrorType defaultError)
Adds an
ErrorType that is used when no mapping is found for a component. |
ErrorTypeLocator.Builder |
defaultExceptionMapper(ExceptionMapper exceptionMapper)
Sets the default exception mapper to use when a component doesn't define a mapping for an exception type.
|
public Builder(ErrorTypeRepository errorTypeRepository)
public ErrorTypeLocator.Builder defaultExceptionMapper(ExceptionMapper exceptionMapper)
exceptionMapper - default exception mapper.this builder.public ErrorTypeLocator.Builder addComponentExceptionMapper(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier, ExceptionMapper exceptionMapper)
ExceptionMapper for a particular component identified by the componentIdentifier.componentIdentifier - identifier of a component.exceptionMapper - exception mapper for the component.this builder.public ErrorTypeLocator build()
ErrorTypeLocator instance with the provided configuration.ErrorTypeLocator instance.public ErrorTypeLocator.Builder defaultError(org.mule.runtime.api.message.ErrorType defaultError)
ErrorType that is used when no mapping is found for a component.this builder.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.