Свойство | Type | Description | |
---|---|---|---|
$console | Zend\Console\Adapter\AdapterInterface | ||
$messageTemplate | string | The message template to use when exceptions are handled. |
Méthode | Description | |
---|---|---|
__construct ( Zend\Console\Adapter\AdapterInterface $console ) | ||
__invoke ( Exceptio\Exception | Throwabl\Throwable $exception ) | Handle an exception | |
createMessage ( Exceptio\Exception | Throwabl\Throwable $exception ) : string | Create the message to emit based on the provided exception and current message template | |
setMessageTemplate ( mixed $messageTemplate ) | Set the message template to use. |
Méthode | Description | |
---|---|---|
fillTemplate ( Exceptio\Exception | Throwabl\Throwable $exception, false | string $previous = false ) : string | Fill the message template with details of the given exception |
Méthode | Description | |
---|---|---|
validateException ( mixed $exception ) : void | Validate that an exception was received |
public __construct ( Zend\Console\Adapter\AdapterInterface $console ) | ||
$console | Zend\Console\Adapter\AdapterInterface |
public __invoke ( Exceptio\Exception | Throwabl\Throwable $exception ) | ||
$exception | Exceptio\Exception | Throwabl\Throwable |
public createMessage ( Exceptio\Exception | Throwabl\Throwable $exception ) : string | ||
$exception | Exceptio\Exception | Throwabl\Throwable | |
Résultat | string |
protected fillTemplate ( Exceptio\Exception | Throwabl\Throwable $exception, false | string $previous = false ) : string | ||
$exception | Exceptio\Exception | Throwabl\Throwable | |
$previous | false | string | If provided, adds the ":previous" template and this value |
Résultat | string |
public setMessageTemplate ( mixed $messageTemplate ) | ||
$messageTemplate | mixed |
protected AdapterInterface,Zend\Console\Adapter $console | ||
Résultat | Zend\Console\Adapter\AdapterInterface |
protected string $messageTemplate | ||
Résultat | string |