Documentation

ConsoleErrorEvent extends ConsoleEvent
in package

Allows to handle throwables thrown while running a command.

Tags
author

Wouter de Jong wouter@wouterj.nl

Table of Contents

$command  : mixed
$error  : mixed
$exitCode  : mixed
$input  : mixed
$output  : mixed
__construct()  : mixed
getCommand()  : Command|null
Gets the command that is executed.
getError()  : Throwable
getExitCode()  : int
getInput()  : InputInterface
Gets the input instance.
getOutput()  : OutputInterface
Gets the output instance.
setError()  : void
setExitCode()  : void

Properties

Methods

setError()

public setError(Throwable $error) : void
Parameters
$error : Throwable
Return values
void

setExitCode()

public setExitCode(int $exitCode) : void
Parameters
$exitCode : int
Return values
void

Search results