ErrorReporterInterface
Interface
This interface MUST be implemented by any class that reports exceptions from deferred callbacks.
Description
Implementations SHALL provide a report() method that handles the throwable, callback, and arguments.
Methods
report()
: void
Reports an exception from a deferred callback.
Methods
Reports an exception from a deferred callback.
public
report(Throwable
$throwable[,
callable|null
$callback = null][,
array<string|int, mixed>
$arguments = []]) : void
Description
This method MUST handle the throwable and MAY use the callback and arguments for context.
Parameters
$throwable
:
Throwable
Description
the exception to report
$callback
:
callable|null
=
null
Description
the related callback, if available
$arguments
:
array<string|int, mixed>
=
[]
Description
arguments passed to the callback, if any