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

Handler realisation. More...

Classes

class  CatchingFlow
 Catch block. More...
 

Public Attributes

CatchingFlow _catch
 Cardinality [1..*]
Catching block. More...
 
Flow _finally
 Cardinality [0..1]
Finally block. More...
 
Flow _try
 Cardinality [1]
Monitored section. More...
 

Detailed Description

Handler realisation.

Member Data Documentation

◆ _catch

CatchingFlow OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation._catch

Cardinality [1..*]
Catching block.

When an exception is thrown in the try block, the catch flows of a Handler are analyzed one by one in order of appearance in the OTX document. The first catch with a matching exception type will be executed. If there is no matching catch, control is passed to the next outer handler (after executing the finally flow, if given).

Checker rules
CheckerRule.Core_Chk016 - No redundant exception catches

◆ _finally

Flow OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation._finally

Cardinality [0..1]
Finally block.

If existing, this flow will always be executed at the end of the handler. It will also be executed, if there is no catch treating the type of exception, or if the catch flow also completed abruptly.

◆ _try

Flow OpenTestSystem.Otx.Core.Nodes.Node.CompoundNode.Handler.HandlerRealisation._try

Cardinality [1]
Monitored section.

Represents the flow that is monitored by the Handler. Potentially thrown exceptions may be treated by catch flows. Any occurring exception in this flow will cause it to complete abruptly.