Zend\Mvc\View\Console\ExceptionStrategy
Synopsis
class ExceptionStrategy
extends AbstractListenerAggregate
{
- // members
- protected bool $displayExceptions;
- protected string|callable $message;
- protected string $previousMessage;
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void attach()
- public ExceptionStrategy setDisplayExceptions()
- public bool displayExceptions()
- public string getMessage()
- public ExceptionStrategy setMessage()
- public ExceptionStrategy setPreviousMessage()
- public callable|string getPreviousMessage()
- public void prepareExceptionViewModel()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Tasks
Line | Task |
---|---|
158+ | dispatch.error does not halt dispatch unless a response is |
Members
protected
- $displayExceptions
—
Zend\Mvc\View\Console\bool
Display exceptions? - $listeners — array
- $message
—
Zend\Mvc\View\Console\string|callable
A template for message to show in console when an exception has occurred. - $previousMessage
—
string
A template for message to show in console when an exception has previous exceptions.
Methods
public
- attach() — {@inheritDoc}
- displayExceptions() — Should we display exceptions in error pages?
- getMessage() — Get current template for message that will be shown in Console.
- getPreviousMessage()
- prepareExceptionViewModel() — Create an exception view model, and set the HTTP status code
- setDisplayExceptions() — Flag: display exceptions in error pages?
- setMessage() — Set template for message that will be shown in Console.
- setPreviousMessage() — Sets template for previous message that will be shown in Console.
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}