@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface OnException
Extension level as
a common handler for all the Operations,
When an exception occurs in an operation the Enricher Class declared in this
annotation will be called immediately, passing to the enrichException method the exception thrown by the operation.
an Operation level enricher will override the OnException level one.| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends ExceptionHandler> |
value
A
Class which implements the ExceptionHandler interface. |
public abstract Class<? extends ExceptionHandler> value
Class which implements the ExceptionHandler interface.Copyright © 2017 MuleSoft, Inc.. All rights reserved.