Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Writing Mashups in EMML | Handling or Throwing Exceptions | <try> | <catch>
 
<catch>
A block to catch and handle a specific type of exception thrown by statements in the parent <try> block.
Can Contain
( ( Statements Group | Variables Group | Declarations Group | Macroincludes Group | presto:beginTransaction | presto:commitTransaction | presto:rollbackTransaction | macro:custom-macro-name | ( any element in a non-EMML namespace ) )+ )
Allowed In
try
Attributes
Name
Required
Description
type
yes
A string in the form:
exception-class-name [variable-name]
Where exception-class-name is required and identifies the exception class this <catch> block handles. Exception names are not case sensitive in this context.
See Exception Matching for <catch> Blocks for more information on valid exception names in various contexts and how <catch> blocks are matched.
The second component, variable-name, is optional and identifies the variable name you assign to the exception. If you omit variable-name, $exception is the default variable name for the exception.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release