Throwable::getPrevious
PHP Manual
PHP Manual»Throwable»Throwable::getPrevious

Throwable::getPrevious

(PHP 7, PHP 8)

Throwable::getPrevious — Retorna o Throwable anterior

Descrição

public function Throwable::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