Re: Catching Parrot Exceptions

2003-12-14 Thread Leopold Toetsch
Pete Lomax <[EMAIL PROTECTED]> wrote: > Null PMC access in set_integer_native() This (and a lot of others) currently doesn't throw a real_exception, so you can't catch it. > P0 = _eh() That calls the exception handler directly as a sub. > PS getline always returns 0, and getfile "(

Catching Parrot Exceptions

2003-12-13 Thread Pete Lomax
Hi, Just fishing for comments.. I have been experimenting with error handling, using P9 = 1 to force the error: Null PMC access in set_integer_native() (others too, such as "Key not an integer!" or "Array index out of bounds!"). I have found that: newsub P0, .Exception