class exception_subscriber implements EventSubscriberInterface

Properties

protected language $language

Methods

__construct(language $language)

Constructor.

on_error(ConsoleErrorEvent $event)

This listener is run when the ConsoleEvents::ERROR event is triggered.

static 
getSubscribedEvents()

No description

Details

at line 31
__construct(language $language)

Constructor.

Parameters

language $language

Language object

at line 42
on_error(ConsoleErrorEvent $event)

This listener is run when the ConsoleEvents::ERROR event is triggered.

It translate the error message. If in debug mode the original exception is embedded.

Parameters

ConsoleErrorEvent $event

at line 63
static getSubscribedEvents()

No description