Error::getPreviousReturns previous Throwable Description
final public Throwablenull Error::getPrevious()
Returns previous Throwable (the third parameter of Error::__construct). ParametersThis function has no parameters. Return Values
Returns the previous Throwable if available
or Examples
Example #1 Error::getPrevious example Looping over, and printing out, error trace.
The above example will output something similar to: /home/bjori/ex.php:8 Something happened (911) [MyCustomError] /home/bjori/ex.php:6 You are doing it wrong! (112) [InvalidArgumentError] See Also
|