|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public static @interface Jpf.Catch
A declarative "catch" for exceptions thrown from actions (Jpf.Action
, Jpf.SimpleAction
).
Required Element Summary | |
---|---|
Class<? extends Throwable> |
type
The type of Throwable to handle. |
Optional Element Summary | |
---|---|
String |
message
The JSP 2.0-style expression (e.g., ${pageFlow.myProperty} or literal string message. |
String |
messageKey
A message resource within a message bundle Jpf.MessageBundle that is used to look up the message. |
String |
method
The exception handler method ( Jpf.ExceptionHandler ) to invoke. |
String |
path
The destination URI to forward to. |
Element Detail |
---|
public abstract Class<? extends Throwable> type
public abstract String method
Jpf.ExceptionHandler
) to invoke. Mutually exclusive with path()
.
public abstract String message
${pageFlow.myProperty}
or literal string message. This
message is used in two ways:
method()
is specified.ActionMessage
object within
an ActionErrors
that is stored in request attribute
Globals.ERROR_KEY
. The ActionMessage's key is the value of
messageKey()
, if set, or the full class name of the exception type otherwise.
public abstract String messageKey
Jpf.MessageBundle
that is used to look up the message. The
message is used in two ways:
method()
is specified.ActionMessage
object within
an ActionErrors
that is stored in request attribute
Globals.ERROR_KEY
. The value of messageKey
is also
used as the ActionMessage's key.
public abstract String path
method()
. For more Jpf.ConditionalForward
-style
options, use the method()
attribute.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |