When wrapping an exception thrown from JavaScript2Java Bridge, JSException should conserve the original exception and provide an easy way to access it.
E. g., it would be logical to store original exception as root cause of JSException, making it accessible through JSException.getCause().
Please use the attached project to reproduce the issue.
You can notice from its output that the original exception is used when constructing message, but doesn't participate in stack trace and is not stored as a root cause.
E. g., it would be logical to store original exception as root cause of JSException, making it accessible through JSException.getCause().
Please use the attached project to reproduce the issue.
You can notice from its output that the original exception is used when constructing message, but doesn't participate in stack trace and is not stored as a root cause.