xp-framework/xp-framework — Issue #127: Exception cause swallowed
Author: thekid
Created: 2012-02-21 22:56:20+00:00
State: open
Labels: bug

In the following example, the second exception with the message "b" is not shown:

```sh
$ xp -e 'throw new IllegalArgumentException("a", new IllegalStateException("b"));'
Uncaught exception: Exception lang.reflect.TargetInvocationException (xp▒runtime▒Evaluate::main() invocation failed)
at lang.reflect.Method::invoke(NULL, array[1]) [line 91 of class.php]
Caused by Exception lang.IllegalArgumentException (a)
at

::eval() [line 35 of Evaluate.class.php]
at xp.runtime.Evaluate::main(array[1]) [line 0 of StackTraceElement.class.php]
at php.ReflectionMethod::invokeArgs(NULL, array[1]) [line 102 of Method.class.php]
```