DeferredCallbackFailed

Class
Read only: Yes

Event representing a failed deferred callback execution.

Description

This event MUST be dispatched whenever a deferred callback throws an exception. It SHALL encapsulate the throwable, the callback description, and the callback arguments. Consumers of this event MUST NOT modify its properties.

Table of Contents

Properties

 : array<string|int, mixed>
 : string|null
 : Throwable

Methods

__construct()

Constructs a new DeferredCallbackFailed event.

 : mixed
Properties
Methods

__construct()

Public

Constructs a new DeferredCallbackFailed event.

public __construct(Throwable  $throwable[, string|null  $callback = null][, array<string|int, mixed>  $arguments = []]) : mixed
Parameters
$throwable : Throwable

Description

the exception thrown by the callback

$callback : string|null = null

Description

the description of the callback, if available

$arguments : array<string|int, mixed> = []

Description

the arguments passed to the callback