Exceptions and TargetErrors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Exceptions and TargetErrors

WarnerJan Veldhuis
Hello all,
 
I read about the bug in bsh.Interpreter, with relation to catching Exceptions defined by me, thrown in compiled commands, that are not correctly wrapped in TargetErrors. The proposed solution was to throw a UtilTargetError, but still, eval() comes up with an EvalError.
 
Does anybody have a definitive guide about how to throw exceptions from compiled commands?? Or any guide about exceptions in bsh in general?
 
Thanks in advance,
 
Warner
 
 


Download de nieuwe Windows Live Messenger! Probeer nu!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users