public final class ExceptionHandlerManager extends Object
ExtensionModel and another EnrichableModel, this class will test for a
ExceptionHandlerModelProperty to determine the ExceptionHandler which should be use. If no such property is
available then a default NullExceptionHandler is used.
It also contains all the logic for operations and sources Throwable process and handling.
| Constructor and Description |
|---|
ExceptionHandlerManager(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel) |
ExceptionHandlerManager(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
handleThrowable(Throwable e)
Given a
Throwable instance this method will get the specific failure reason. |
Throwable |
process(Throwable t)
Process the
Throwable parameter to obtain the correct failure and if its an exception this method will enrich it with
the obtained ExceptionHandler for this manager instance. |
public ExceptionHandlerManager(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel)
public ExceptionHandlerManager(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.exception.ErrorTypeRepository errorTypeRepository)
public Throwable process(Throwable t)
Throwable parameter to obtain the correct failure and if its an exception this method will enrich it with
the obtained ExceptionHandler for this manager instance.public Throwable handleThrowable(Throwable e)
Throwable instance this method will get the specific failure reason.
If there is a ConnectionException in the stacktrace is going to be considered the main failure reason, otherwise it
will check if there is a SdkMethodInvocationException wrapper exception in the stacktrace wrapping the real failure.
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.