![]() |
OTX Reference
|
|
Throws Exceptions More...
Public Attributes | |
ExceptionTerm | realisation |
Exception to be triggered. More... | |
![]() | |
System.Boolean | disabled |
To turn on/off a node. A deactivated node is not executed at run time. More... | |
![]() | |
ExtensibleData[] | extendedData |
Declares general data for NamedAndSpecified which can be extented by new general data defined in new OTX extensions using the standardised extension mechanism. For example it can be used to specify specification relevant content in a better structured way. More... | |
OtxId | id |
Unique identifier of an element More... | |
MetaData | metaData |
Additional tool-specific data More... | |
OtxName | name |
Name of an element More... | |
System.String | specification |
Descriptive specification More... | |
Throws Exceptions
There are different reasons for exceptions to occur: An Exception can be thrown implicitly, e.g. by the execution of an Action node or during evaluation of a Term. For any of such Action nodes and Term types, the potentially thrown exceptions are defined. E.g. the Divide term throws an ArithmeticException under well defined conditions. Here, it is not the author who throws the exception explicitly, but it is the evaluation algorithm for Divide which is executed by the runtime system which throws the exception implicitly. The only task left for the author is to define a reaction onto the potentially expected exception by using a Catch in a Handler node. By contrast, the Throw
node is a means to throw exceptions explicitly. The author can define exactly when an exception shall be thrown and he may configure the exception by providing textual information describing his user defined exception.
ExceptionTerm OpenTestSystem.Otx.Core.Nodes.Node.EndNode.Throw.realisation |
Exception to be triggered.
This can be either the value of an exception variable of any Exception type, or a newly created UserException.