| uk.org.ponder.rsf.processor.FatalErrorHandler
All known Subclasses: uk.org.ponder.rsf.processor.DefaultFatalErrorHandler,
FatalErrorHandler | public interface FatalErrorHandler (Code) | | A bean handling "double-fault" rendering errors implements this
interface. A double-fault is declared when an unexpected exception is
thrown rendering the default view for an application, when this view
is already being rendered as a result of a redirect from a level-1 error.
This redirect condition is by default signalled by setting the
errorredirect request attribute.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
Field Summary | |
final public static String | HANDLED A return code from FatalErrorHandler indicating that this exception
has been correctly handled. | final public static String | HANDLE_EXCEPTION_UPSTAIRS A return code from FatalErrorHandler indicating that this exception
should be propagated to a handler outside the RSF system. |
HANDLED | final public static String HANDLED(Code) | | A return code from FatalErrorHandler indicating that this exception
has been correctly handled.
|
HANDLE_EXCEPTION_UPSTAIRS | final public static String HANDLE_EXCEPTION_UPSTAIRS(Code) | | A return code from FatalErrorHandler indicating that this exception
should be propagated to a handler outside the RSF system.
|
handleFatalError | public String handleFatalError(Throwable t, PrintOutputStream pos)(Code) | | Attempt to handle the supplied fatal error, by, if possible, rendering
a suitable error message. If the implementation returns false
or throws any kind of exception, the hard-wired RSF default message will
be printed instead.
Parameters: t - The exception causing the double fault. Parameters: pos - A PrintOutputStream where an error message may be rendered. One of the above Strings if the error has been successfully handled,or null if it has not. |
|
|