Throwable

(PHP 7, PHP 8)

Introduction

Throwable est l'interface de base pour tout objet qui peut être jeté grâce à la déclaration throw, ceci inclus Error et Exception.

Note:

Les classes PHP ne peuvent pas directement implémenter l'interface Throwable, et doivent à la place étendre de Exception.

Sommaire de l'Interface

Throwable {
/* Méthodes */
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
}

Sommaire