ForwardException
class ForwardException extends StopActionException (View source)
This exception is thrown by a controller to stop the execution of the current action and return the control to the dispatcher for the special case of a forward().
Properties
protected string | $referenceCode | from Exception | |
protected int | $statusCode | from Exception | |
protected ActionRequest | $nextRequest |
Methods
Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.
Returns the HTTP status code this exception corresponds to (defaults to 500).
Sets the next request, containing the information about the next action to execute.
Returns the next request
Details
string
getReferenceCode()
Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.
int
getStatusCode()
Returns the HTTP status code this exception corresponds to (defaults to 500).
void
setNextRequest(ActionRequest $nextRequest)
Sets the next request, containing the information about the next action to execute.
ActionRequest
getNextRequest()
Returns the next request