Re: throwing an exception from a pmc

2004-05-08 Thread Leopold Toetsch
Tor Petterson <[EMAIL PROTECTED]> wrote: > I am trying to throw and exception from inside a pmc > so I have this handler > .sub _handler >$S1 = P5["_message"] >if $S1 == "Myexception" goto l1 >rethrow P5 > l1: >.pcc_begin_return >.return P5 >.pcc_end_return > .end You can'

throwing an exception from a pmc

2004-05-08 Thread Tor Petterson
I am trying to throw and exception from inside a pmc so I have this handler .sub _handler $S1 = P5["_message"] if $S1 == "Myexception" goto l1 rethrow P5 l1: .pcc_begin_return .return P5 .pcc_end_return .end registrered like this .local Exception_Handler hndl newsub hndl, .Exceptio