PHP 8.4.26 Released!

La classe Yaf_Exception

(Yaf >=1.0.0)

Introduction

Yaf_Exception est la classe de base de toutes les exceptions levées par Yaf. Toutes les autres classes d'exception de Yaf en héritent.

Elle étend RuntimeException lorsque l'extension SPL est chargée, et la classe native Exception sinon. Les exceptions levées par Yaf portent un code d'erreur qui identifie le type d'échec.

Synopsis de la classe

class Yaf_Exception extends RuntimeException {
/* Propriétés héritées */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes */
public function __construct(string $message = "", int $code = 0)
public function getPrevious(): Throwable
/* Méthodes héritées */
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

Sommaire

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top