public class ModuleExceptionHandler extends Object
ModuleExceptions, which given a Throwable checks whether the exceptions is
ModuleException, and if is converts it to an TypedException.| Constructor and Description |
|---|
ModuleExceptionHandler(org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
ErrorTypeRepository typeRepository) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
processException(Throwable throwable)
Process a given
Throwable, if this one is a ModuleException, a TypedException will be built and
returned. |
public ModuleExceptionHandler(org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
ErrorTypeRepository typeRepository)
public Throwable processException(Throwable throwable)
Throwable, if this one is a ModuleException, a TypedException will be built and
returned.
TypedException will be taken from the given throwable causeErrorType will be taken from the ErrorTypeRepository using the ErrorTypeDefinition from the
ModuleExceptionthrowable - to processCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.