Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
ExceptionEvent Class Reference

Public Member Functions

 __construct ($name, StorageInterface $storage, ArrayObject $params, &$result, Exception $exception)
 Constructor.
 
 setException (Exception $exception)
 Set the exception to be thrown.
 
 getException ()
 Get the exception to be thrown.
 
 setThrowException ($flag)
 Throw the exception or use the result.
 
 getThrowException ()
 Throw the exception or use the result.
 
- Public Member Functions inherited from PostEvent
 __construct ($name, StorageInterface $storage, ArrayObject $params, &$result)
 Constructor.
 
 setResult (&$value)
 Set the result/return value.
 
getResult ()
 Get the result/return value.
 
- Public Member Functions inherited from Event
 __construct ($name, StorageInterface $storage, ArrayObject $params)
 Constructor.
 
 setTarget ($target)
 Set the event target/context.
 
 setStorage (StorageInterface $storage)
 Alias of setTarget.
 
 getStorage ()
 Alias of getTarget.
 
- Public Member Functions inherited from Event
 __construct ($name=null, $target=null, $params=null)
 Constructor.
 
 getName ()
 Get event name.
 
 getTarget ()
 Get the event target.
 
 setParams ($params)
 Set parameters.
 
 getParams ()
 Get all parameters.
 
 getParam ($name, $default=null)
 Get an individual parameter.
 
 setName ($name)
 Set the event name.
 
 setTarget ($target)
 Set the event target/context.
 
 setParam ($name, $value)
 Set an individual parameter to a value.
 
 stopPropagation ($flag=true)
 Stop further event propagation.
 
 propagationIsStopped ()
 Is propagation stopped?
 

Protected Attributes

 $exception
 
 $throwException = true
 
- Protected Attributes inherited from PostEvent
 $result
 

Constructor & Destructor Documentation

__construct (   $name,
StorageInterface  $storage,
ArrayObject  $params,
$result,
Exception  $exception 
)

Constructor.

Accept a target and its parameters.

Parameters
string$name
StorageInterface$storage
ArrayObject$params
mixed$result
Exception$exception

Member Function Documentation

getException ( )

Get the exception to be thrown.

Returns
Exception
getThrowException ( )

Throw the exception or use the result.

Returns
bool
setException ( Exception  $exception)

Set the exception to be thrown.

Parameters
Exception$exception
Returns
ExceptionEvent
setThrowException (   $flag)

Throw the exception or use the result.

Parameters
bool$flag
Returns
ExceptionEvent

Member Data Documentation

$exception
protected
$throwException = true
protected