Throwable

(PHP 7, PHP 8)

Introduzione

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

Nota:

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

Sommario dell'interfaccia

interface Throwable extends Stringable {
/* Metodi */
public getMessage(): string
public getCode(): int
public getFile(): string
public getLine(): int
public getTrace(): array
public __toString(): string
/* Metodi ereditati */
}

Log delle modifiche

Versione Descrizione
8.0.0 Throwable implements Stringable now.

Indice dei contenuti