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 © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback