‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Mvc\Exception\StopActionException Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Exception\StopActionException:
TYPO3\CMS\Extbase\Mvc\Exception TYPO3\CMS\Extbase\Exception TYPO3\CMS\Core\Exception

Public Member Functions

 __construct ($message='', $code=0, \Throwable $previous=null, ResponseInterface $response=null)
 
 getResponse ()
 

Private Attributes

ResponseInterface $response
 

Detailed Description

This exception is thrown by a controller to stop the execution of the current action and return the control to the dispatcher. The dispatcher catches this exception and - depending on the "dispatched" status of the request - either continues dispatching the request or returns control to the request handler.

See the Action Controller's forward() and redirectToUri() methods for more information.

Deprecated:
‪since v11, will be removed in v12. This action shouldn't be thrown anymore: Actions that extbase-internally forward to another action should RETURN Extbase\Http\ForwardResponse instead. Actions that initiate a client redirect should RETURN a Core\Http\RedirectResponse instead.

Definition at line 36 of file StopActionException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Mvc\Exception\StopActionException::__construct (   $message = '',
  $code = 0,
\Throwable  $previous = null,
ResponseInterface  $response = null 
)

Member Function Documentation

◆ getResponse()

TYPO3\CMS\Extbase\Mvc\Exception\StopActionException::getResponse ( )

Member Data Documentation

◆ $response

ResponseInterface TYPO3\CMS\Extbase\Mvc\Exception\StopActionException::$response
private