phpday 2027 - Call for Papers

Throwable::getCode

(PHP 7, PHP 8)

Throwable::getCode — Liefert den Exception-Code

Beschreibung

public function Throwable::getCode(): int

Gibt den Fehlercode zurück, der dem geworfenen Objekt zugewiesen ist.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Gibt den Fehlercode von Exception-Objekten als int zurück, aber bei abgeleiteten Klassen von Exception möglicherweise als andere Typen (z. B. als String bei PDOException).

Siehe auch

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top