TYPO3
7.6
|
Public Member Functions | |
__construct (Command $command, InputInterface $input, OutputInterface $output,\Exception $exception, $exitCode) | |
getException () | |
setException (\Exception $exception) | |
getExitCode () | |
Public Member Functions inherited from ConsoleEvent | |
__construct (Command $command, InputInterface $input, OutputInterface $output) | |
getCommand () | |
getInput () | |
getOutput () | |
Private Attributes | |
$exception | |
$exitCode | |
Additional Inherited Members | |
Protected Attributes inherited from ConsoleEvent | |
$command | |
Allows to handle exception thrown in a command.
Definition at line 23 of file ConsoleExceptionEvent.php.
__construct | ( | Command | $command, |
InputInterface | $input, | ||
OutputInterface | $output, | ||
\Exception | $exception, | ||
$exitCode | |||
) |
Definition at line 28 of file ConsoleExceptionEvent.php.
References ConsoleExceptionEvent\$exitCode, and ConsoleExceptionEvent\setException().
getException | ( | ) |
Returns the thrown exception.
Definition at line 41 of file ConsoleExceptionEvent.php.
References ConsoleExceptionEvent\$exception.
Referenced by Application\doRunCommand(), and ApplicationTest\getDispatcher().
getExitCode | ( | ) |
Gets the exit code.
Definition at line 63 of file ConsoleExceptionEvent.php.
References ConsoleExceptionEvent\$exitCode.
Referenced by ApplicationTest\getDispatcher().
setException | ( | \Exception | $exception | ) |
Replaces the thrown exception.
This exception will be thrown if no response is set in the event.
\Exception | $exception | The thrown exception |
Definition at line 53 of file ConsoleExceptionEvent.php.
References ConsoleExceptionEvent\$exception.
Referenced by ConsoleExceptionEvent\__construct(), and ApplicationTest\getDispatcher().
|
private |
Definition at line 25 of file ConsoleExceptionEvent.php.
Referenced by ConsoleExceptionEvent\getException(), and ConsoleExceptionEvent\setException().
|
private |
Definition at line 26 of file ConsoleExceptionEvent.php.
Referenced by ConsoleExceptionEvent\__construct(), and ConsoleExceptionEvent\getExitCode().