PageFlowException Class
- public abstract class PageFlowException
extends RuntimeException
Base class for PageFlow-related Exceptions.
-
Hierarchy
-
Object
Throwable
Exception
RuntimeException
PageFlowException
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
ActionNotFoundException
, EmptyNestingStackException
, IllegalOutputFormException
, IllegalPageInputException
, InfiniteReturnToActionException
, NoMatchingActionMethodException
, NotLoggedInException
, ReturnToException
, UnfulfilledRolesException
, UnresolvableForwardException
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageFlowException
public PageFlowException(String
actionName,
FlowController
fc)
getActionName() Method
public String
getActionName()
Get the name of the action associated with this exception.
Returns
- a String that is the name of the action associated with this exception.
getFlowController() Method
public FlowController
getFlowController()
Get the related FlowController.
Returns
- the
FlowController
associated with this exception.
getFlowControllerURI() Method
public String
getFlowControllerURI()
Get the name of the related FlowController.
Returns
- the class name of the
FlowController
associated with this exception.
getLocalizedMessage() Method
public String
getLocalizedMessage()
-
Overrides
-
Throwable.getLocalizedMessage()
getMessage() Method
public String
getMessage()
-
Overrides
-
Throwable.getMessage()
getMessageArgs() Method
protected abstract Object
[] getMessageArgs()
getMessageParts() Method
protected abstract String
[] getMessageParts()
printError(PrintWriter) Method
public void printError(PrintWriter
writer)
Print a formatted message.
Parameters
-
writer
- a writer to which to print the formatted message.
sendError(HttpServletRequest, HttpServletResponse) Method
public void sendError(HttpServletRequest
request,
HttpServletResponse
response)
throws IOException
Handle the error by writing a message to the response.
Parameters
-
request
- the current HttpServletRequest
-
response
- the current HttpServletResponse
Exceptions
-
IOException