Throwable::getPrevious

(PHP 7, PHP 8)

Throwable::getPreviousRetourne le Throwable précédent

Description

public Throwable::getPrevious(): ?Throwable

Retourne un Throwable précédent (par exemple, un fourni grâce au troisième paramètre de Exception::__construct()).

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne le Throwable précédent si disponible ou null sinon.

Voir aussi