Zend\Mvc\View\Http\ExceptionStrategy
Synopsis
class ExceptionStrategy
extends AbstractListenerAggregate
{
- // members
- protected bool $displayExceptions;
- protected string $exceptionTemplate;
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void attach()
- public ExceptionStrategy setDisplayExceptions()
- public bool displayExceptions()
- public ExceptionStrategy setExceptionTemplate()
- public string getExceptionTemplate()
- public void prepareExceptionViewModel()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Tasks
Line | Task |
---|---|
98+ | dispatch.error does not halt dispatch unless a response is |
Members
protected
- $displayExceptions
—
Zend\Mvc\View\Http\bool
Display exceptions? - $exceptionTemplate
—
string
Name of exception template - $listeners — array
Methods
public
- attach() — {@inheritDoc}
- displayExceptions() — Should we display exceptions in error pages?
- getExceptionTemplate() — Retrieve the exception template
- prepareExceptionViewModel() — Create an exception view model, and set the HTTP status code
- setDisplayExceptions() — Flag: display exceptions in error pages?
- setExceptionTemplate() — Set the exception template
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}