final class ForwardException extends Exception (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.

See {\Neos\Flow\Mvc\Controller\AbstractController::forward()} for more information.

Other control flow exceptions: {\Neos\Flow\Mvc\Exception\StopActionException}

Properties

protected string $referenceCode from  Exception
protected int $statusCode from  Exception
$nextRequest

The next request the MVC Dispatcher should handle.

Methods

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).

createForNextRequest(ActionRequest $nextRequest, string $details)

No description

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.

Return Value

string

int getStatusCode()

Returns the HTTP status code this exception corresponds to (defaults to 500).

Return Value

int

static ForwardException createForNextRequest(ActionRequest $nextRequest, string $details)

No description

Parameters

ActionRequest $nextRequest

The next request the MVC Dispatcher should handle.

string $details

Additional details just for this exception, in case it is logged (the regular exception message).

Return Value

ForwardException