Zend\Cache\Storage\ExceptionEvent
Synopsis
class ExceptionEvent
extends PostEvent
{
- // members
- protected Exception $exception;
- protected bool $throwException;
- // Inherited members from PostEvent
- protected mixed $result;
- // Inherited members from Event
- protected string $name;
- protected string|object $target;
- protected array|ArrayAccess|object $params;
- protected bool $stopPropagation;
- // methods
- public void __construct()
- public ExceptionEvent setException()
- public Exception getException()
- public ExceptionEvent setThrowException()
- public bool getThrowException()
- // Inherited methods from PostEvent
- public void __construct()
- public PostEvent setResult()
- public mixed getResult()
- // Inherited methods from Event
- public void __construct()
- public Event setTarget()
- public Event setStorage()
- public StorageInterface getStorage()
- // Inherited methods from Event
- public void __construct()
- public string getName()
- public string|object getTarget()
- public Event setParams()
- public array|object|ArrayAccess getParams()
- public mixed getParam()
- public Event setName()
- public Event setTarget()
- public Event setParam()
- public void stopPropagation()
- public bool propagationIsStopped()
Hierarchy
Extends
Members
protected
- $exception
—
Exception
The exception to be thrown - $name — string
- $params — Zend\EventManager\array|ArrayAccess|object
- $result
—
mixed
The result/return value - $stopPropagation — Zend\EventManager\bool
- $target — Zend\EventManager\string|object
- $throwException
—
Zend\Cache\Storage\bool
Throw the exception or use the result
Methods
public
- __construct() — Constructor
- getException() — Get the exception to be thrown
- getThrowException() — Throw the exception or use the result
- setException() — Set the exception to be thrown
- setThrowException() — Throw the exception or use the result
Inherited from Zend\Cache\Storage\PostEvent
public
- getResult() — Get the result/return value
- setResult() — Set the result/return value
Inherited from Zend\Cache\Storage\Event
public
- getStorage() — Alias of getTarget
- setStorage() — Alias of setTarget
- setTarget() — Set the event target/context
Inherited from Zend\EventManager\Event
public
- getName() — Get event name
- getParam() — Get an individual parameter
- getParams() — Get all parameters
- getTarget() — Get the event target
- propagationIsStopped() — Is propagation stopped?
- setName() — Set the event name
- setParam() — Set an individual parameter to a value
- setParams() — Set parameters
- setTarget() — Set the event target/context
- stopPropagation() — Stop further event propagation