Difference between revisions of "Core.Terms.UserExceptionCreate"

From emotive
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]] | - | - }}
  
== Pseudo-Code Syntax ==
+
==OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Exception UserExceptionCreate(String qualifier, String text);
+
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

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.

Icons Note.png 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");

See also

ListCreate
MapCreate