Rebol Programming/throw-on-error
USAGE:
editTHROW-ON-ERROR blk
DESCRIPTION:
editEvaluates a block, which if it results in an error, throws that error.
THROW-ON-ERROR is a function value.
ARGUMENTS
edit- blk -- (Type: block)
(SPECIAL ATTRIBUTES)
edit- throw
SOURCE CODE
editthrow-on-error: func [ {Evaluates a block, which if it results in an error, throws that error.} [throw] blk [block!] ][ if error? set/any 'blk try blk [throw blk] get/any 'blk ]