Property | Type | Description | |
---|---|---|---|
$console | Zend\Console\Adapter\AdapterInterface | ||
$messageTemplate | string | The message template to use when exceptions are handled. |
Method | 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. |
Method | Description | |
---|---|---|
fillTemplate ( Exceptio\Exception | Throwabl\Throwable $exception, false | string $previous = false ) : string | Fill the message template with details of the given exception |
Method | 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 | |
return | 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 |
return | string |
public setMessageTemplate ( mixed $messageTemplate ) | ||
$messageTemplate | mixed |
protected AdapterInterface,Zend\Console\Adapter $console | ||
return | Zend\Console\Adapter\AdapterInterface |
protected string $messageTemplate | ||
return | string |