Die Klasse DOMException

(PHP 5, PHP 7, PHP 8)

Einführung

DOM-Operationen lösen unter bestimmten Umständen Ausnahmen aus, d. h., wenn eine Operation aus logischen Gründen nicht ausgeführt werden kann.

Siehe auch Exceptions (Ausnahmen).

Klassenbeschreibung

finalclassDOMExceptionextendsException {
publicint$code;
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

Eigenschaften

code

Eine ganze Zahl, die die Art des erzeugten Fehlers angibt.

To Top