XFA Specification
Chapter 10, Scripting
Exception handling
323
Exception handling
Note:
More complete information on this topic will be provided in a later release of this specification.
Exceptions can be thrown during the execution of a script. In general, if the scripting environment doesn't
support a feature and this feature is invoked via script, an exception is thrown.
FormCalc and ECMAScript respond to exceptions as follows:
FormCalc. The script stops as soon as an exception is thrown. FormCalc exceptions are described in
“FormCalc Specification” on page 801.
ECMAScript. If an algorithm throws an exception, execution of the algorithm is terminated and no
result is returned. The calling algorithms are also terminated, until an algorithm step is reached that
explicitly deals with the exception. Once such an algorithm step has been encountered, the exception
is no longer considered to have occurred. ECMAScript exceptions are described in the ECMAScript
Language Specification [
ECMAScript
].
Picture Clauses and Localization
The FormCalc functions support localization in several ways, as listed in
“Locales” on page 827.
Naked References in JavaScript
Note:
Information on this topic will be provided in a later release of this specification.
Unicode Support
FormCalc supports Unicode 3.2
[Unicode-3.2],
and ECMAScript supports some range of Unicode,
depending on the implementation. A conforming implementation of ECMAScript interprets characters in
conformance with the Unicode Standard, Version 2.1 or later, and ISO/IEC 10646-1 with either UCS-2 or
UTF-16 as the adopted encoding form, implementation level 3. If the adopted ISO/IEC 10646-1 subset is
not otherwise specified, it is presumed to be the BMP subset, collection 300
[Unicode-2.1].
Home Index Bookmark Pages
Pages: Home Index All Pages