diff --git a/language/predefined/exception/getprevious.xml b/language/predefined/exception/getprevious.xml index 79acb1e9ff..4a328e2a57 100644 --- a/language/predefined/exception/getprevious.xml +++ b/language/predefined/exception/getprevious.xml @@ -1,5 +1,5 @@ - + @@ -14,8 +14,7 @@ - Returns previous Exception (the third parameter of Exception constructor). + Returns previous Exception (the third parameter of Exception::__construct). @@ -31,6 +30,50 @@ + + &reftitle.examples; + + + <methodname>Exception::getPrevious</methodname> example + + Looping over, and printing out, exception trace. + + +getFile(), $e->getLine(), $e->getMessage(), $e->getCode(), get_class($e)); + } while($e = $e->getPrevious()); +} +?> +]]> + + &example.outputs.similar; + + + + + + + +