Throwable

(PHP 7)

Introduction

Throwable est l'interface de base pour tout objet qui peut être jeté grâce à la déclaration throw en PHP 7, 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 ( void ) : string
abstract public getCode ( void ) : int
abstract public getFile ( void ) : string
abstract public getLine ( void ) : int
abstract public getTrace ( void ) : array
abstract public getTraceAsString ( void ) : string
abstract public getPrevious ( void ) : Throwable
abstract public __toString ( void ) : string
}

Sommaire