php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Error Class Reference
Inheritance diagram for Error:
Throwable Stringable ArithmeticError AssertionError CompileError DateError FFI\Exception FiberError Random\RandomError TypeError UnhandledMatchError ValueError

Public Member Functions

 __construct (string $message="", int $code=0, ?Throwable $previous=null)
 
 __wakeup ()
 
 getMessage ()
 
 getCode ()
 
 getFile ()
 
 getLine ()
 
 getTrace ()
 
 getPrevious ()
 
 getTraceAsString ()
 
 __toString ()
 

Protected Attributes

 $message = ""
 
 $code = 0
 
string $file = ""
 
int $line
 

Detailed Description

Definition at line 84 of file zend_exceptions.stub.php.

Constructor & Destructor Documentation

◆ __construct()

Error::__construct ( string $message = "",
int $code = 0,
?Throwable $previous = null )

@implementation-alias Exception\__construct

Definition at line 106 of file zend_exceptions.stub.php.

Member Function Documentation

◆ __toString()

Error::__toString ( )

@implementation-alias Exception\__toString

Implements Stringable.

Definition at line 139 of file zend_exceptions.stub.php.

◆ __wakeup()

Error::__wakeup ( )

@tentative-return-type @implementation-alias Exception\__wakeup

Definition at line 112 of file zend_exceptions.stub.php.

◆ getCode()

Error::getCode ( )
final
Returns
int @implementation-alias Exception\getCode

Implements Throwable.

Definition at line 121 of file zend_exceptions.stub.php.

◆ getFile()

Error::getFile ( )
final

@implementation-alias Exception\getFile

Implements Throwable.

Definition at line 124 of file zend_exceptions.stub.php.

◆ getLine()

Error::getLine ( )
final

@implementation-alias Exception\getLine

Implements Throwable.

Definition at line 127 of file zend_exceptions.stub.php.

◆ getMessage()

Error::getMessage ( )
final

@implementation-alias Exception\getMessage

Implements Throwable.

Definition at line 115 of file zend_exceptions.stub.php.

◆ getPrevious()

Error::getPrevious ( )
final

@implementation-alias Exception\getPrevious

Implements Throwable.

Definition at line 133 of file zend_exceptions.stub.php.

◆ getTrace()

Error::getTrace ( )
final

@implementation-alias Exception\getTrace

Implements Throwable.

Definition at line 130 of file zend_exceptions.stub.php.

◆ getTraceAsString()

Error::getTraceAsString ( )
final

@implementation-alias Exception\getTraceAsString

Implements Throwable.

Definition at line 136 of file zend_exceptions.stub.php.

Field Documentation

◆ $code

Error::$code = 0
protected

Definition at line 96 of file zend_exceptions.stub.php.

◆ $file

string Error::$file = ""
protected

Definition at line 97 of file zend_exceptions.stub.php.

◆ $line

int Error::$line
protected

Definition at line 98 of file zend_exceptions.stub.php.

◆ $message

Error::$message = ""
protected

Definition at line 90 of file zend_exceptions.stub.php.


The documentation for this class was generated from the following file: