OTX Reference  
OpenTestSystem.Otx.Core.Terms.UserExceptionLiteral Class Reference

UserException Literal More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.UserExceptionLiteral:
Inheritance graph

Public Attributes

StringLiteral qualifier
 String to categorize the exception. More...
 
StringLiteral text
 Reason of the exception. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

UserException Literal

UserExceptionLiteral is an ExceptionTerm. The term can be used for creating a UserException. The most prominent uses of this term are the initialisation in UserException declarations as well as the explicit Throw node which allows for the author to customize and throw such an exception.

Syntax
Value = @UserException:"Qualifier"/"Text";
Examples
UserException Exception1 = @UserException:"FileNotFound"/"The file was not found!";

Member Data Documentation

◆ qualifier

StringLiteral OpenTestSystem.Otx.Core.Terms.UserExceptionLiteral.qualifier

String to categorize the exception.

This string literal allows for the author to provide a short qualifier for the exception initialisation. A qualifier will be used to categorize an exception.

◆ text

StringLiteral OpenTestSystem.Otx.Core.Terms.UserExceptionLiteral.text

Reason of the exception.

This string literal allows for the author to provide a text which characterises the exception's reason.