Throwable::getPrevious

(PHP 7, PHP 8)

Throwable::getPreviousRetorna o Throwable anterior

Descrição

publicThrowable::getPrevious(): ?Throwable

Retorna qualquer Throwable anterior (por exemplo, aquele fornecido como o terceiro parâmetro para Exception::__construct()).

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna o Throwable anterior se disponível, ou null caso contrário.

Veja Também

To Top