wheredevel / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 0 forks source link

User-friendly exceptions #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When i am calling a variable that doesnt exists, the error message only 
explains this after two screen lengths of text.
2. Users who are familiar with java often do tests to se if an object is null. 
Here you check if the object is of the type void, since i am developing a 
systems that is supposed to user friendly, i except them to get lost when bsh 
errors occurs
3. How about looking into how java deals with exceptions and try to mimic that 
behaviour?

What is the expected output? What do you see instead?

I except to see: Error: Undefined variable 'test'. Instead i see maybe 20 lines 
of code without line termination that makes it hard to debug code

What version of the product are you using? On what operating system?
I am using slackware64 and bsh2.2 from SVN 

Please provide any additional information below.

I would really appreciate if you could work with this, so i can get my project 
done.
My project is http://code.google.com/p/phpj

Cheers

Lars Inge Gutterud

Original issue reported on code.google.com by glopuz@gmail.com on 11 Aug 2013 at 2:39