help raise hell

2003-08-14 Thread Michal Wallace
Here is how I usually trigger a generic exception in python: >>> raise hell Traceback (most recent call last): File "", line 1, in ? NameError: name 'hell' is not defined Unfortunately, I can't seem to trap that in parrot, because a find_lex failure isn't an exception. Or am I

RE: help raise hell

2003-08-14 Thread Joseph F. Ryan
> -Original Message- > Date: Mon 08/11/03 3:30 AM > From: Michal Wallace <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > CC: > Subject: help raise hell > > > > Here is how I usually trigger a generic exception > in python: > > >>

Re: help raise hell

2003-08-14 Thread Jos Visser
On Mon, Aug 11, 2003 at 03:30:44AM -0400 it came to pass that Michal Wallace wrote: > because a find_lex failure isn't an exception. > Or am I missing something? Currently find_lex does *not* throw an exception. Inside "scratchpad_get"(and friends) an internal exception is thrown which just termin

RE: help raise hell

2003-08-14 Thread Michal Wallace
On Mon, 11 Aug 2003, Joseph F. Ryan wrote: > How are you currently throwing/catching exceptions? I think it > might be much more difficult to create a model that "traps" > exceptions, rather than setting up code that just "figures out" how > to handle an exception when it occurs. Both JVM->PIR a