Exception handling syntax: Difference between revisions

Content deleted Content added
Dylwi (talk | contribs)
add exception handling syntax for ooRexx
Tags: Reverted Visual edit
Restored revision 1285947380 by Citation bot (talk): Rv mention of obscure language
Line 768:
Printexc.record_backtrace true
or by setting the environment variable OCAMLRUNPARAM="b1"*)
</syntaxhighlight>
 
=== ooRexx ===
{{Further|Object REXX}}
<syntaxhighlight lang="rexx">
Signal on Syntax /* switch on SYNTAX trap */
 
Say 1 + "AString" /* an impossible calculation */
 
Exit
 
SYNTAX:
ConditionObject = Condition(Object) /* get additional information */
say "Error code is" ConditionObject~Code /* output: Error code is 41.1 */
say ConditionObject~ErrorText /* output: Bad arithmetic conversion. */
</syntaxhighlight>