#260 Add RAISE PROPAGATE CONDITION keyword

None
open
nobody
5
2012-08-22
2007-11-21
Moritz Hoffmann
No

At the moment it is not possible to save error conditions in a way they can be recreated seamlessly. If a second error condition occurs in the same scope the first one is lost and can not be propagated anymore. To overcome this issue the PROPAGATE keyword needs to be enhanced by an optional keyword CONDITION that is followed by a directory. This directory can be obtained with the internal function condition("O").

Example:

signal on syntax
... code issuing a syntax error

syntax:
cond = condition("O")
signal on user UserError
... more code issuing UserError

UserError:
raise propagate condition (cond)

Thanks, Moritz

Discussion


Anonymous


Cancel   Add attachments