Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • ConsoleCommandEvent
  • ConsoleEvent
  • ConsoleExceptionEvent
  • ConsoleTerminateEvent
  • Overview
  • Namespace
  • Class

Class ConsoleExceptionEvent

Allows to handle exception thrown in a command.

Symfony\Component\EventDispatcher\Event
Extended by Symfony\Component\Console\Event\ConsoleEvent
Extended by Symfony\Component\Console\Event\ConsoleExceptionEvent
Namespace: Symfony\Component\Console\Event
Author: Fabien Potencier fabien@symfony.com
Located at Event/ConsoleExceptionEvent.php
Methods summary
public
# __construct( Symfony\Component\Console\Command\Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Exception $exception, $exitCode )

Overrides

Symfony\Component\Console\Event\ConsoleEvent::__construct()
public Exception
# getException( )

Returns the thrown exception.

Returns the thrown exception.

Returns

Exception
The thrown exception
public
# setException( Exception $exception )

Replaces the thrown exception.

Replaces the thrown exception.

This exception will be thrown if no response is set in the event.

Parameters

$exception
The thrown exception
public integer
# getExitCode( )

Gets the exit code.

Gets the exit code.

Returns

integer
The command exit code
Methods inherited from Symfony\Component\Console\Event\ConsoleEvent
getCommand(), getInput(), getOutput()
Properties inherited from Symfony\Component\Console\Event\ConsoleEvent
$command
Peridot API documentation generated by ApiGen