Fully Qualified Name: | Laminas\Mvc\View\Http\ExceptionStrategy |
Extends: | AbstractListenerAggregate |
Name | Description | Defined By |
---|---|---|
attach() | {@inheritDoc} | ExceptionStrategy |
detach() | {@inheritDoc} | AbstractListenerAggregate |
displayExceptions() | Should we display exceptions in error pages? | ExceptionStrategy |
getExceptionTemplate() | Retrieve the exception template | ExceptionStrategy |
prepareExceptionViewModel() | Create an exception view model, and set the HTTP status code | ExceptionStrategy |
setDisplayExceptions() | Flag: display exceptions in error pages? | ExceptionStrategy |
setExceptionTemplate() | Set the exception template | ExceptionStrategy |
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events | ||
$priority |
Returns:
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$events |
Returns:
Should we display exceptions in error pages?
Returns: bool
Retrieve the exception template
Returns: string
Create an exception view model, and set the HTTP status code
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: void
Flag: display exceptions in error pages?
Parameter Name | Type | Description |
---|---|---|
$displayExceptions | bool |
Returns: \ExceptionStrategy
Set the exception template
Parameter Name | Type | Description |
---|---|---|
$exceptionTemplate | string |
Returns: \ExceptionStrategy