Robot Framework
robot.model.control.Try Class Reference

TRY/EXCEPT structure root. More...

Inheritance diagram for robot.model.control.Try:
robot.model.body.BodyItem robot.model.modelobject.ModelObject metaclass robot.result.model.Try robot.running.model.Try

Public Member Functions

def __init__ (self, parent=None)
 
def body (self, branches)
 
def visit (self, visitor)
 
- Public Member Functions inherited from robot.model.modelobject.ModelObject
def __repr__ (self)
 
def config (self, **attributes)
 Configure model object with given attributes. More...
 
def copy (self, **attributes)
 Return shallow copy of this object. More...
 
def deepcopy (self, **attributes)
 Return deep copy of this object. More...
 

Public Attributes

 body
 
 parent
 

Static Public Attributes

 branch_class = TryBranch
 
 branches_class = Branches
 
 type = BodyItem.TRY_EXCEPT_ROOT
 
- Static Public Attributes inherited from robot.model.body.BodyItem
string BREAK = 'BREAK'
 
string CONTINUE = 'CONTINUE'
 
string ELSE = 'ELSE'
 
string ELSE_IF = 'ELSE IF'
 
string EXCEPT = 'EXCEPT'
 
string FINALLY = 'FINALLY'
 
string FOR = 'FOR'
 
string IF = 'IF'
 
string IF_ELSE_ROOT = 'IF/ELSE ROOT'
 
string ITERATION = 'ITERATION'
 
string KEYWORD = 'KEYWORD'
 
string MESSAGE = 'MESSAGE'
 
string RETURN = 'RETURN'
 
string SETUP = 'SETUP'
 
string TEARDOWN = 'TEARDOWN'
 
string TRY = 'TRY'
 
string TRY_EXCEPT_ROOT = 'TRY/EXCEPT ROOT'
 
 type = None
 
string WHILE = 'WHILE'
 
- Static Public Attributes inherited from robot.model.modelobject.ModelObject
tuple repr_args = ()
 

Properties

 else_branch = property
 
 except_branches = property
 
 finally_branch = property
 
 id = property
 Root TRY/EXCEPT id is always None. More...
 
 try_branch = property
 
- Properties inherited from robot.model.body.BodyItem
 has_setup = property
 
 has_teardown = property
 
 id = property
 Item id in format like s1-t3-k1. More...
 

Private Member Functions

def else_branch (self)
 
def except_branches (self)
 
def finally_branch (self)
 
def id (self)
 
def try_branch (self)
 

Static Private Attributes

list __slots__ = []
 

Detailed Description

TRY/EXCEPT structure root.

Branches are stored in :attr:body.

Definition at line 200 of file control.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.model.control.Try.__init__ (   self,
  parent = None 
)

Definition at line 206 of file control.py.

Member Function Documentation

◆ body()

def robot.model.control.Try.body (   self,
  branches 
)

Definition at line 211 of file control.py.

◆ else_branch()

def robot.model.control.Try.else_branch (   self)
private

Definition at line 231 of file control.py.

◆ except_branches()

def robot.model.control.Try.except_branches (   self)
private

Definition at line 225 of file control.py.

◆ finally_branch()

def robot.model.control.Try.finally_branch (   self)
private

Definition at line 240 of file control.py.

◆ id()

def robot.model.control.Try.id (   self)
private

Reimplemented from robot.model.body.BodyItem.

Definition at line 249 of file control.py.

◆ try_branch()

def robot.model.control.Try.try_branch (   self)
private

Definition at line 217 of file control.py.

◆ visit()

def robot.model.control.Try.visit (   self,
  visitor 
)

Definition at line 252 of file control.py.

Member Data Documentation

◆ __slots__

list robot.model.control.Try.__slots__ = []
staticprivate

Definition at line 204 of file control.py.

◆ body

robot.model.control.Try.body

Definition at line 208 of file control.py.

◆ branch_class

robot.model.control.Try.branch_class = TryBranch
static

Definition at line 202 of file control.py.

◆ branches_class

robot.model.control.Try.branches_class = Branches
static

Definition at line 203 of file control.py.

◆ parent

robot.model.control.Try.parent

Definition at line 207 of file control.py.

◆ type

robot.model.control.Try.type = BodyItem.TRY_EXCEPT_ROOT
static

Definition at line 201 of file control.py.

Property Documentation

◆ else_branch

robot.model.control.Try.else_branch = property
static

Definition at line 229 of file control.py.

◆ except_branches

robot.model.control.Try.except_branches = property
static

Definition at line 223 of file control.py.

◆ finally_branch

robot.model.control.Try.finally_branch = property
static

Definition at line 238 of file control.py.

◆ id

robot.model.control.Try.id = property
static

Root TRY/EXCEPT id is always None.

Definition at line 247 of file control.py.

◆ try_branch

robot.model.control.Try.try_branch = property
static

Definition at line 215 of file control.py.


The documentation for this class was generated from the following file: