[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Exceptions not being handled (or thrown correctly)
I'm trying to catch an exception that I throw. It appears that the exception is created but my/maybe not thrown.
I looked through the documentation and couldn't find anything on exception handling.
--- Ted
bsh.TargetError: TargetError : throw new javax .naming .NamingException ( appName + " not found" ) ;
Target exception: javax.naming.NamingException: biz not found
at bsh.BSHThrowStatement.eval(BSHThrowStatement.java:31)
at bsh.BSHBlock.eval(BSHBlock.java:29)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:28)
at bsh.BSHBlock.eval(BSHBlock.java:29)
at bsh.BshMethod.invokeDeclaredMethod(BshMethod.java:89)
at bsh.Reflect.invokeLocalMethod(Reflect.java:507)
at bsh.Reflect.invokeMethod(Reflect.java:68)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:29)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:69)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:35)
at bsh.BSHBlock.eval(BSHBlock.java:29)
at bsh.BSHTryStatement.eval(BSHTryStatement.java:56)
at bsh.BSHBlock.eval(BSHBlock.java:29)
at bsh.BshMethod.invokeDeclaredMethod(BshMethod.java:89)
at bsh.Reflect.invokeLocalMethod(Reflect.java:507)
at bsh.Reflect.invokeMethod(Reflect.java:68)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:29)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:48)
at bsh.Interpreter.run(Interpreter.java:310)
at bsh.Interpreter.main(Interpreter.java:266)