跳转到主要内容

construct

Error::__construct

Construct the error object

ENTITY

public

Error::__construct

string

message

""

int

code

0

Throwable

null

previous

ENTITY

Constructs the Error.

ENTITY

message
The error message.

code
The error code.

previous
The previous throwable used for the exception chaining.

ENTITY

[!NOTE] The message is NOT binary safe.