Difference between revisions of "Core.Terms.UserExceptionCreate"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | UserExceptionCreate | Creates a new UserException at run time | [[Term]] | [[Core|OTX Core library]] | [[Creation terms]] | - | - }} | {{ClassificationActivity | UserExceptionCreate | Creates a new UserException at run time | [[Term]] | [[Core|OTX Core library]] | [[Creation terms]] | - | - }} | ||
− | == | + | ==OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | ExceptionTerm = UserExceptionCreate(StringLiteral, StringLiteral); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Exception result = UserExceptionCreate("UserException", "UserException was throw"); | + | Exception result; |
+ | result = UserExceptionCreate("UserException", "UserException was throw"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:26, 3 February 2015
Contents
Classification
Name | UserExceptionCreate |
Short Description | Creates a new UserException at run time |
Class | Term |
Extension | OTX Core library |
Group | Creation terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ExceptionTerm = UserExceptionCreate(StringLiteral, StringLiteral);
Description
UserExceptionCreate is a term to create a new UserException at run time. It is produced by passing a qualifier and a text.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Exception | The newly created UserException |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Qualifier | String | Term | - | [1] | Text to the categorization of the exception |
Text | String | Term | - | [1] | ext to the description of the exception |
Examples
Exception result;
result = UserExceptionCreate("UserException", "UserException was throw");