com.emarsys.ecommon.exceptions.handling
Annotation Type HandleExceptions


@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Inherited
public @interface HandleExceptions

HandleExceptions represents a method or type level annotation which describes an ExceptionScenario associated with the annotated method or type.

NOTE: the whole pluggable exception handling (PEH) module is highly experimental and still under heavy development, don't use it in production code unless you know what you're doing!

Author:
Michael "kULO" Kulovits

See Also:
ExceptionScenario,


Required Element Summary
 java.lang.String scenario
          the name of the ExceptionScenario this annotation describes.
 
Optional Element Summary
 java.lang.Class<?> delegate
          the class to which the exception handling configuration is delegated.
 java.lang.Class<? extends java.lang.Exception> handledClass
          the boundary of the Exception class to be handled.
 java.lang.Class<? extends java.lang.Exception> thrownClass
          the boundary of the Exception class the might be rethrown.
 

Element Detail

scenario

public abstract java.lang.String scenario
the name of the ExceptionScenario this annotation describes.

handledClass

public abstract java.lang.Class<? extends java.lang.Exception> handledClass
the boundary of the Exception class to be handled. optional, per default Exception.class.

Default:
java.lang.Exception.class

thrownClass

public abstract java.lang.Class<? extends java.lang.Exception> thrownClass
the boundary of the Exception class the might be rethrown. optional, per default Exception.class.

Default:
java.lang.Exception.class

delegate

public abstract java.lang.Class<?> delegate
the class to which the exception handling configuration is delegated. optional and exclusive attirbute: if set, all others have to be unset.

Default:
java.lang.Void.class


Copyright © 2010 emarsys AG. All Rights Reserved.