Robot Framework
robot.running.usererrorhandler.UserErrorHandler Class Reference

Created if creating handlers fail – running raises DataError. More...

Public Member Functions

def __init__ (self, error, name, libname=None, source=None, lineno=None)
 :param robot.errors.DataError error: Occurred error. More...
 
def create_runner (self, name, languages=None)
 
def run (self, kw, context, run=True)
 

Public Attributes

 arguments
 
 error
 
 libname
 
 lineno
 
 name
 
 source
 
 tags
 
 timeout
 

Static Public Attributes

def dry_run = run
 
bool supports_embedded_arguments = False
 

Properties

 doc = property
 
 longname = property
 
 shortdoc = property
 

Private Member Functions

def doc (self)
 
def longname (self)
 
def shortdoc (self)
 

Detailed Description

Created if creating handlers fail – running raises DataError.

The idea is not to raise DataError at processing time and prevent all
tests in affected test case file from executing. Instead UserErrorHandler
is created and if it is ever run DataError is raised then.

Definition at line 30 of file usererrorhandler.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.running.usererrorhandler.UserErrorHandler.__init__ (   self,
  error,
  name,
  libname = None,
  source = None,
  lineno = None 
)

:param robot.errors.DataError error: Occurred error.

:param str name: Name of the affected keyword. :param str libname: Name of the affected library or resource. :param str source: Path to the source file. :param int lineno: Line number of the failing keyword.

Definition at line 40 of file usererrorhandler.py.

Member Function Documentation

◆ create_runner()

def robot.running.usererrorhandler.UserErrorHandler.create_runner (   self,
  name,
  languages = None 
)

Definition at line 68 of file usererrorhandler.py.

◆ doc()

def robot.running.usererrorhandler.UserErrorHandler.doc (   self)
private

Definition at line 59 of file usererrorhandler.py.

◆ longname()

def robot.running.usererrorhandler.UserErrorHandler.longname (   self)
private

Definition at line 53 of file usererrorhandler.py.

◆ run()

def robot.running.usererrorhandler.UserErrorHandler.run (   self,
  kw,
  context,
  run = True 
)

Definition at line 71 of file usererrorhandler.py.

◆ shortdoc()

def robot.running.usererrorhandler.UserErrorHandler.shortdoc (   self)
private

Definition at line 65 of file usererrorhandler.py.

Member Data Documentation

◆ arguments

robot.running.usererrorhandler.UserErrorHandler.arguments

Definition at line 46 of file usererrorhandler.py.

◆ dry_run

def robot.running.usererrorhandler.UserErrorHandler.dry_run = run
static

Definition at line 81 of file usererrorhandler.py.

◆ error

robot.running.usererrorhandler.UserErrorHandler.error

Definition at line 41 of file usererrorhandler.py.

◆ libname

robot.running.usererrorhandler.UserErrorHandler.libname

Definition at line 43 of file usererrorhandler.py.

◆ lineno

robot.running.usererrorhandler.UserErrorHandler.lineno

Definition at line 45 of file usererrorhandler.py.

◆ name

robot.running.usererrorhandler.UserErrorHandler.name

Definition at line 42 of file usererrorhandler.py.

◆ source

robot.running.usererrorhandler.UserErrorHandler.source

Definition at line 44 of file usererrorhandler.py.

◆ supports_embedded_arguments

bool robot.running.usererrorhandler.UserErrorHandler.supports_embedded_arguments = False
static

Definition at line 31 of file usererrorhandler.py.

◆ tags

robot.running.usererrorhandler.UserErrorHandler.tags

Definition at line 48 of file usererrorhandler.py.

◆ timeout

robot.running.usererrorhandler.UserErrorHandler.timeout

Definition at line 47 of file usererrorhandler.py.

Property Documentation

◆ doc

robot.running.usererrorhandler.UserErrorHandler.doc = property
static

Definition at line 57 of file usererrorhandler.py.

◆ longname

robot.running.usererrorhandler.UserErrorHandler.longname = property
static

Definition at line 51 of file usererrorhandler.py.

◆ shortdoc

robot.running.usererrorhandler.UserErrorHandler.shortdoc = property
static

Definition at line 63 of file usererrorhandler.py.


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