InvalidTranslateTable class: Difference between revisions
(Created page with "<!-- InvalidTranslateTable class --> __NOTOC__ The <var>InvalidTranslateTable</var> exception class indicates that a system translate table (as loaded by JANUS LOADXT) was...") |
m (add link to exception example) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!-- InvalidTranslateTable class --> | <!-- InvalidTranslateTable class --> | ||
__NOTOC__ | __NOTOC__ | ||
The <var>InvalidTranslateTable</var> exception class indicates that a system translate table (as loaded by [[JANUS LOADXT]]) was requested but not found. | The <var>InvalidTranslateTable</var> exception class indicates that a system translate table (as loaded by [[JANUS LOADXT]]) was requested but not found. <var>InvalidTranslateTable</var> was introduced in Model 204 version 7.5. | ||
To produce a <var>InvalidTranslateTable</var> exception for yourself, you typically use a <var class="product">User Language</var> <var>[[Exceptions#Throwing exceptions|Throw]]</var> statement with | To produce a <var>InvalidTranslateTable</var> exception for yourself, you typically use a <var class="product">User Language</var> <var>[[Exceptions#Throwing exceptions|Throw]]</var> statement with an <var>InvalidTranslateTable</var> <var>[[New_(InvalidTranslateTable_constructor)|New]]</var> constructor. For example, the following statement throws an <var>InvalidTranslateTable</var> exception: | ||
<p class="code">throw %(invalidTranslateTable):new | <p class="code">throw %(invalidTranslateTable):new | ||
</p> | </p> | ||
For an example of how you might use an exception in your own code, see this [[InvalidValue class|InvalidValue exception example]]. | |||
==The InvalidTranslateTable methods== | ==The InvalidTranslateTable methods== | ||
Line 17: | Line 18: | ||
<li>[[InvalidTranslateTable methods syntax|"InvalidTranslateTable methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class. | <li>[[InvalidTranslateTable methods syntax|"InvalidTranslateTable methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class. | ||
</ul> | </ul> | ||
==New constructor== | ==New constructor== | ||
{{Template:InvalidTranslateTable:New subtitle}} | {{Template:InvalidTranslateTable:New subtitle}} | ||
This <var>Constructor</var> generates an instance of an <var>[[ | This <var>Constructor</var> generates an instance of an <var>[[InvalidTranslateTable class|InvalidTranslateTable]]</var> exception. The <var>New</var> method format is as follows: | ||
===Syntax=== | ===Syntax=== | ||
Line 28: | Line 28: | ||
====Syntax terms==== | ====Syntax terms==== | ||
<table | <table> | ||
<tr><th>%invalidTranslateTable </th> | <tr><th>%invalidTranslateTable </th> | ||
Line 34: | Line 34: | ||
</td></tr> | </td></tr> | ||
<tr><th><var>[%(InvalidTranslateTable):]</var></th><td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes| | <tr><th nowrap><var>[%(InvalidTranslateTable):]</var></th> | ||
<td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|Usage notes]], below, for more information about invoking a <var>InvalidTranslateTable</var> <var>Constructor</var>.</td></tr> | |||
</table> | </table> | ||
===Usage notes=== | ===Usage notes=== | ||
<ul> | <ul> | ||
<li>As described in [[Object variables#Using New or other Constructors| | <li>As described in [[Object variables#Using New or other Constructors|Using New or other Constructors]], <var>New</var> can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is <var>Null</var>: | ||
<p class="code">%invalidxt = new | <p class="code">%invalidxt = new | ||
Line 45: | Line 46: | ||
%invalidxt = %invalidxt:new | %invalidxt = %invalidxt:new | ||
</p> | </p></li> | ||
</ul> | </ul> | ||
[[Category:System exception classes]] | [[Category:System exception classes]] |
Latest revision as of 19:43, 15 March 2016
The InvalidTranslateTable exception class indicates that a system translate table (as loaded by JANUS LOADXT) was requested but not found. InvalidTranslateTable was introduced in Model 204 version 7.5.
To produce a InvalidTranslateTable exception for yourself, you typically use a User Language Throw statement with an InvalidTranslateTable New constructor. For example, the following statement throws an InvalidTranslateTable exception:
throw %(invalidTranslateTable):new
For an example of how you might use an exception in your own code, see this InvalidValue exception example.
The InvalidTranslateTable methods
The following are the available InvalidTranslateTable class methods.
Method | Description |
---|---|
New | Create a new InvalidTranslateTable object |
The methods in the class are described in the subsections that follow. In addition:
- "Notation conventions for methods" has information about the conventions followed.
- "InvalidTranslateTable methods syntax" is a single page that contains the syntax diagrams of all the methods in the class.
New constructor
Create a new InvalidTranslateTable object (InvalidTranslateTable class)
[Introduced in Model 204 7.5]
This Constructor generates an instance of an InvalidTranslateTable exception. The New method format is as follows:
Syntax
%invalidTranslateTable = [%(InvalidTranslateTable):]New
Syntax terms
%invalidTranslateTable | A reference to an instance of a InvalidTranslateTable object. |
---|---|
[%(InvalidTranslateTable):] | The class name in parentheses denotes a Constructor. See Usage notes, below, for more information about invoking a InvalidTranslateTable Constructor. |
Usage notes
- As described in Using New or other Constructors, New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:
%invalidxt = new %invalidxt = %(InvalidTranslateTable):new %invalidxt = %invalidxt:new