Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/throw-on-error

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: THROW-ON-ERROR blk DESCRIPTION: Evaluates a block, which if it results in an error, throws that error. THROW-ON-ERROR is a function value. ARGUMENTS blk -- (Type: block) (SPECIAL ATTRIBUTES) throw SOURCE CODE throw-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 ]