‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Http\ImmediateResponseException Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\ImmediateResponseException:
TYPO3\CMS\Core\Exception TYPO3\CMS\Core\Http\PropagateResponseException

Public Member Functions

 __construct (ResponseInterface $response, int $code=0)
Response getResponse ()

Private Attributes

ResponseInterface $response

Detailed Description

Exception that has to be handled immediately in order to stop current execution and provide the current response. This exception is used as alternative to previous die() or exit().

Note this exception is only caught by Application classes, throwing it will bypass all outer middlewares. It should not be thrown by controllers, those should usually throw a PropagateResponseException instead, allowing outer middlewares to further process the response.

Definition at line 34 of file ImmediateResponseException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\ImmediateResponseException::__construct ( ResponseInterface  $response,
int  $code = 0 

Member Function Documentation

◆ getResponse()

Member Data Documentation

◆ $response

ResponseInterface TYPO3\CMS\Core\Http\ImmediateResponseException::$response