Documentation

ConsoleErrorEvent extends ConsoleEvent
in package

FinalYes

Allows to handle throwables thrown while running a command.

Tags
author

Wouter de Jong wouter@wouterj.nl

Table of Contents

Properties

$command  : Command|null
$error  : Throwable
$exitCode  : int

Methods

__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

setExitCode()

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

        
On this page

Search results