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

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 have stop current execution and provide the current response. This exception is used as alternative to previous die() or exit().

Definition at line 29 of file ImmediateResponseException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 39 of file ImmediateResponseException.php.

References TYPO3\CMS\Core\Http\ImmediateResponseException\$response.

Member Function Documentation

◆ getResponse()

Response TYPO3\CMS\Core\Http\ImmediateResponseException::getResponse ( )

Member Data Documentation

◆ $response

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