Documentation

InvalidCallbackError extends Error
in package

FinalYes

Table of Contents

Constants

E_INVALID_IDENTIFIER  = 2
E_NONNULL_RETURN  = 1

Properties

$callbackId  : string
$info  : array<string, string>
$rawMessage  : string

Methods

addInfo()  : void
getCallbackId()  : string
invalidIdentifier()  : self
MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid callback identifier.
nonNullReturn()  : self
MUST be thrown if any callback returns a non-null value.
__construct()  : mixed

Constants

Properties

Methods

addInfo()

public addInfo(string $key, string $message) : void
Parameters
$key : string
$message : string

getCallbackId()

public getCallbackId() : string
Return values
string

The callback identifier.

invalidIdentifier()

MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid callback identifier.

public static invalidIdentifier(string $callbackId) : self

An invalid callback identifier is any identifier that is not yet emitted by the driver or cancelled by the user.

Parameters
$callbackId : string
Return values
self

nonNullReturn()

MUST be thrown if any callback returns a non-null value.

public static nonNullReturn(string $callbackId, Closure $closure) : self
Parameters
$callbackId : string
$closure : Closure
Return values
self

__construct()

private __construct(string $callbackId, int $code, string $message) : mixed
Parameters
$callbackId : string

The callback identifier.

$code : int
$message : string

The exception message.


        
On this page

Search results