Documentación offline PHP master

Throwable::getPrevious

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

Throwable::getPrevious

Devuelve el objeto Throwable previo

Descripción#

php public Throwable::getPrevious(): Throwablephp

Devuelve el objeto Throwable previo (por ejemplo, uno proporcionado como tercer parámetro de Exception::__construct).

Parámetros#

Esta función no contiene ningún parámetro.

Valores devueltos#

Devuelve el objeto Throwable anterior si está disponible, o null si no lo está.

Véase también#

Exception::getPrevious