OTX Reference  
OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation.CatchingFlow.CatchHeader.CatchRealisation Class Reference

Catch realisation. More...

Public Attributes

ExceptionVariable handle
 Cardinality [0..1]
Exception handle. More...
 
Exception type
 Cardinality [1]
Type of exception. More...
 

Detailed Description

Catch realisation.

Member Data Documentation

◆ handle

ExceptionVariable OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation.CatchingFlow.CatchHeader.CatchRealisation.handle

Cardinality [0..1]
Exception handle.

If the associated flow element needs to access the exception object itself, the optional handle element allows assigning the object to an Exception type variable.

Checker rules
CheckerRule.Core_Chk019 - Type-safe exception catches
CheckerRule.Core_Chk053 - No dangling OtxLink associations

◆ type

Exception OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation.CatchingFlow.CatchHeader.CatchRealisation.type

Cardinality [1]
Type of exception.

Allows choosing one out of the list of all Exception types. The base type Exception may be chosen here as well: In this case, any kind of exception is caught by the CatchingFlow. The flow of the CatchingFlow shall only be executed if the type of the thrown exception matches or is a subtype of the type given here.

Checker rules
CheckerRule.Core_Chk057 - No use of init in catch header exception type definition