add arguments to NotImplemented calls

Archie Cobbs archie at whistle.com
Fri May 21 12:01:53 PDT 1999


Patrick Tullmann writes:
> > Almost all descriptive strings you add contain the name of the method.
> > Remember that NotImplemented is a Throwable so printStackTrace() will
> > show you where the exception was throw (with source name and line number).
> 
> Yep. But, I was debugging someone else's Java package and they were
> only printing th.getMessage() and moving on, so I had no idea which
> function wasn't implemented.  While I could have routed around fixing
> their code, it seems to me that Kaffe should be as verbose as possible
> when reporting internal errors like these.

Yeah, I think it's useful too. The only thing I'd add is that you
can use Classname.class.getName() to avoid redundantly encoding the
class name.. pretty minor thing though.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list