Skip to main content
Use the arc:catch keyword to create an exception-handling block in a script. In addition to arc:try, you can contain an arc:catch block in any of the following keywords, the scope of which serves as an implicit arc:try section:

Parameters

  • code: Allows you to selectively catch exceptions. To catch all exceptions, use an asterisk (*).

Control Attributes

  • _code: The code of the caught exception.
  • _description: A short description of the caught exception.
  • _details: More information about the exception, if available.

Examples

Wrap a more user-friendly message around the error output from a batch file or shell command:
Throw and catch an exception. Inside an arc:call, an RSBException is thrown and caught. Inside the scope of the keyword, the arc:ecode and arc:emessage attributes are added to the current item and pushed out.
Catch all exceptions:

See Also