php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Exception Class Reference
Inheritance diagram for Exception:
Throwable Stringable ClosedGeneratorException DOMException DateException ErrorException IntlException JsonException LogicException PharException Random\RandomException ReflectionException RequestParseBodyException RuntimeException SQLite3Exception SoapFault SodiumException com_exception

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 = 0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

Member Function Documentation

◆ __toString()

Exception::__toString ( )

Implements Stringable.

Reimplemented in SoapFault.

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

◆ __wakeup()

Exception::__wakeup ( )

@tentative-return-type

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

◆ getCode()

Exception::getCode ( )
final
Returns
int

Implements Throwable.

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

◆ getFile()

Exception::getFile ( )
final

Implements Throwable.

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

◆ getLine()

Exception::getLine ( )
final

Implements Throwable.

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

◆ getMessage()

Exception::getMessage ( )
final

Implements Throwable.

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

◆ getPrevious()

Exception::getPrevious ( )
final

Implements Throwable.

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

◆ getTrace()

Exception::getTrace ( )
final

Implements Throwable.

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

◆ getTraceAsString()

Exception::getTraceAsString ( )
final

Implements Throwable.

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

Field Documentation

◆ $code

Exception::$code = 0
protected

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

◆ $file

string Exception::$file = ""
protected

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

◆ $line

int Exception::$line = 0
protected

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

◆ $message

Exception::$message = ""
protected

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


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