Annotation Interface OnException
@MinMuleVersion("4.1")
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
public @interface OnException
This annotation can be used at Operation level or at
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.- Since:
- 1.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends ExceptionHandler>AClasswhich implements theExceptionHandlerinterface.
-
Element Details
-
value
Class<? extends ExceptionHandler> valueAClasswhich implements theExceptionHandlerinterface.
-