Content deleted Content added
Citation bot (talk | contribs) Added title. Changed bare reference to CS1/2. | Use this bot. Report bugs. | Suggested by Dominic3203 | Linked from User:LinguisticMystic/cs/outline | #UCB_webform_linked 685/2277 |
add exception handling syntax for ooRexx Tags: Reverted Visual edit |
||
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>
|