Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested exception is converted to message and can not be retrieved #79

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Throw a java exception in script.
2. Get the detailed exception as root cause from the wrapping exception
3.

What is the expected output? What do you see instead?
Expect to get the root cause exception. But the nested exception is converted 
to message, and lost.

Please use labels and text to provide additional information.
It's not using the java exception chain mechanism, which is a nice feature for 
servceability.

Original issue reported on code.google.com by [email protected] on 12 Oct 2012 at 7:03

@GoogleCodeExporter
Copy link
Author

Example:

try {
    new Interpreter().eval("class A{A(){throw new RuntimeException(\"The root cause\");}} new A();");
} catch (Exception e) {
    e.printStackTrace();
}

Original comment by [email protected] on 12 Oct 2012 at 7:15

@GoogleCodeExporter
Copy link
Author

This happens only in class initialization...

Original comment by [email protected] on 12 Oct 2012 at 7:15

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 12 Oct 2012 at 7:36

  • Changed state: Fixed

nickl- added a commit to beanshell/beanshell that referenced this issue Nov 8, 2017
Merge pejobo/beanshell2@ed8801f fix for pejobo/beanshell2#79 exception is converted to string loosing cauise trace.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@ed8801f fix for pejobo/beanshell2#79 exception is converted to string loosing cauise trace.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@ed8801f fix for pejobo/beanshell2#79 exception is converted to string loosing cauise trace.
nickl- added a commit to beanshell/beanshell that referenced this issue Mar 19, 2019
Merge pejobo/beanshell2@ed8801f fix for pejobo/beanshell2#79 exception is converted to string loosing cauise trace.
patniemeyer pushed a commit to beanshell/beanshell that referenced this issue Dec 6, 2023
Merge pejobo/beanshell2@ed8801f fix for pejobo/beanshell2#79 exception is converted to string loosing cauise trace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant