ErrorEvent
Represent a listener failure as a dispatchable event.
Description
The dispatcher emits this event when a listener throws while handling another event.
Interfaces
Properties
Methods
Create an error event from a failed listener invocation.
Get the original event that was being dispatched.
Get the listener that raised the throwable.
Get the throwable that caused this error event.
Determine whether propagation for this error event has been stopped.
Mark this error event as stopped.
Create an error event from a failed listener invocation.
public
__construct(
object
$event,
callable
$listener, Throwable
$throwable[,
bool
$propagationStopped = false]) : mixed
Parameters
$event
:
object
Description
original event being dispatched
$listener
:
callable
Description
listener that raised the throwable
$throwable
:
Throwable
Description
throwable raised by the listener
$propagationStopped
:
bool
=
false
Description
initial propagation state for this error event
Get the original event that was being dispatched.
public
getEvent() : object
Return values
Description
event instance associated with the listener failure
Get the listener that raised the throwable.
public
getListener() : callable
Return values
Description
listener associated with this error event
Get the throwable that caused this error event.
public
getThrowable() : Throwable
Return values
Description
throwable stored as the previous exception
Determine whether propagation for this error event has been stopped.
public
isPropagationStopped() : bool
Return values
Description
whether propagation is currently stopped
Mark this error event as stopped.
public
stopPropagation() : void