final | |
|---|---|
readonly | |
implements |
JsonSerializable, Arrayable<array{code: int<-32768, -32000>, message: non-empty-string, data?: array<string, mixed>}> |
The error object in a JSONRPCError.
| Methods | ||
|---|---|---|
public
|
__construct(int $code, non-empty-string $message, null|array<string, mixed> $data = null)
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): template-type<self, Arrayable, 'T'>
|
# |
| Properties | |||
|---|---|---|---|
public
|
int<-32768, -32000>
|
$code
|
# |
public
|
non-empty-string
|
$message
|
# |
public
|
null|array<string, mixed>
|
$data
|
# |