Robot Framework
robot.running.model.Try Class Reference
Inheritance diagram for robot.running.model.Try:
robot.model.control.Try robot.model.body.BodyItem robot.model.modelobject.ModelObject metaclass

Public Member Functions

def __init__ (self, parent=None, lineno=None, error=None)
 
def run (self, context, run=True, templated=False)
 
- Public Member Functions inherited from robot.model.control.Try
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

 error
 
 lineno
 
- Public Attributes inherited from robot.model.control.Try
 body
 
 parent
 

Static Public Attributes

 branch_class = TryBranch
 
- Static Public Attributes inherited from robot.model.control.Try
 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

 source = property
 
- Properties inherited from robot.model.control.Try
 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 source (self)
 

Static Private Attributes

list __slots__ = ['lineno', 'error']
 

Detailed Description

Definition at line 174 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.running.model.Try.__init__ (   self,
  parent = None,
  lineno = None,
  error = None 
)

Definition at line 178 of file model.py.

Member Function Documentation

◆ run()

def robot.running.model.Try.run (   self,
  context,
  run = True,
  templated = False 
)

Definition at line 189 of file model.py.

◆ source()

def robot.running.model.Try.source (   self)
private

Definition at line 186 of file model.py.

Member Data Documentation

◆ __slots__

list robot.running.model.Try.__slots__ = ['lineno', 'error']
staticprivate

Definition at line 175 of file model.py.

◆ branch_class

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

Definition at line 176 of file model.py.

◆ error

robot.running.model.Try.error

Definition at line 181 of file model.py.

◆ lineno

robot.running.model.Try.lineno

Definition at line 180 of file model.py.

Property Documentation

◆ source

robot.running.model.Try.source = property
static

Definition at line 184 of file model.py.


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