Class ExceptionStrategy

Summary

Fully Qualified Name: Zend\Mvc\View\Http\ExceptionStrategy
Extends: AbstractListenerAggregate

Description

Methods

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

Method Details

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

displayExceptions()

Should we display exceptions in error pages?

Returns: bool

getExceptionTemplate()

Retrieve the exception template

Returns: string

prepareExceptionViewModel()

Create an exception view model, and set the HTTP status code

Parameter Name Type Description
$e \MvcEvent

Returns: void

setDisplayExceptions()

Flag: display exceptions in error pages?

Parameter Name Type Description
$displayExceptions bool

Returns: \ExceptionStrategy

setExceptionTemplate()

Set the exception template

Parameter Name Type Description
$exceptionTemplate string

Returns: \ExceptionStrategy

Top