[tcljava-user] TclException reported with stack trace?
Brought to you by:
mdejong
From: Kristoffer L. <se...@fi...> - 2006-07-13 11:34:51
|
I am running the release version of jacl (1.3.2). In a command I'm creating I throw TclExceptions and TclNumArgsExceptions. However, they are only reported back with a Java stacktrace, not with a more human-friendly Tcl-style one. The code looks something like this: if (objv.length != 5) { throw new TclNumArgsException(interp, 1, objv, "host port username password"); } The end result is something like this: Exception in thread "main" tcl.lang.TclNumArgsException at Smssh$LoginCommand.cmdProc(Smssh.java:38) . . . Am I missing something in the way error conditions should be handled with Jacl? / http://www.fishpool.com/~setok/ |