Throwable

(PHP 7, PHP 8)

Introducere

Throwable is the base interface for any object that can be thrown via a throw statement, including Error and Exception.

Notă:

PHP classes cannot implement the Throwable interface directly, and must instead extend Exception.

Descrierea succintă a interfeței

Throwable {
/* Metode */
abstract public getMessage ( ) : string
abstract public getCode ( ) : int
abstract public getFile ( ) : string
abstract public getLine ( ) : int
abstract public getTrace ( ) : array
abstract public getTraceAsString ( ) : string
abstract public getPrevious ( ) : Throwable
abstract public __toString ( ) : string
}

Cuprins