Robot Framework Integrated Development Environment (RIDE)
robotide.lib.robot.utils.error Namespace Reference

Classes

class  _ErrorDetails
 
class  JavaErrorDetails
 
class  PythonErrorDetails
 

Functions

def ErrorDetails (exc_info=None, exclude_robot_traces=EXCLUDE_ROBOT_TRACES)
 This factory returns an object that wraps the last occurred exception. More...
 
def get_error_details (exclude_robot_traces=EXCLUDE_ROBOT_TRACES)
 Returns error message and details of the last occurred exception. More...
 
def get_error_message ()
 Returns error message of the last occurred exception. More...
 

Variables

 EXCLUDE_ROBOT_TRACES = not os.getenv('ROBOT_INTERNAL_TRACES')
 
tuple Throwable = ()
 

Function Documentation

◆ ErrorDetails()

def robotide.lib.robot.utils.error.ErrorDetails (   exc_info = None,
  exclude_robot_traces = EXCLUDE_ROBOT_TRACES 
)

This factory returns an object that wraps the last occurred exception.

It has attributes `message`, `traceback` and `error`, where `message`
contains type and message of the original error, `traceback` contains the
traceback/stack trace and `error` contains the original error instance.

Definition at line 57 of file error.py.

◆ get_error_details()

def robotide.lib.robot.utils.error.get_error_details (   exclude_robot_traces = EXCLUDE_ROBOT_TRACES)

Returns error message and details of the last occurred exception.

Definition at line 46 of file error.py.

◆ get_error_message()

def robotide.lib.robot.utils.error.get_error_message ( )

Returns error message of the last occurred exception.

This method handles also exceptions containing unicode messages. Thus it
MUST be used to get messages from all exceptions originating outside the
framework.

Definition at line 41 of file error.py.

Variable Documentation

◆ EXCLUDE_ROBOT_TRACES

robotide.lib.robot.utils.error.EXCLUDE_ROBOT_TRACES = not os.getenv('ROBOT_INTERNAL_TRACES')

Definition at line 27 of file error.py.

◆ Throwable

tuple robotide.lib.robot.utils.error.Throwable = ()

Definition at line 32 of file error.py.