org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.Catch


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public static @interface Jpf.Catch

was jpf:catch


Required Element Summary
 Class<? extends Throwable> type
          the type of exception to catch (required )
 
Optional Element Summary
 String message
          the literal message to send to the exception handler method (optional)
 String messageKey
          a message-resources key to lookup the message that will be sent to the exception handler method (optional )
 String method
          the Jpf.ExceptionHandler method to invoke when the exception occurs (optional ) (cannot be present if path is present )
 String path
          the destination URI when the exception occurs (cannot be present if method is present) (optional )
 

Element Detail

type

public abstract Class<? extends Throwable> type
the type of exception to catch (required )

method

public abstract String method
the Jpf.ExceptionHandler method to invoke when the exception occurs (optional ) (cannot be present if path is present )

Default:
""

path

public abstract String path
the destination URI when the exception occurs (cannot be present if method is present) (optional )

Default:
""

message

public abstract String message
the literal message to send to the exception handler method (optional)

Default:
""

messageKey

public abstract String messageKey
a message-resources key to lookup the message that will be sent to the exception handler method (optional )

Default:
""