Robot Framework
robot.utils.error Namespace Reference

Classes

class  ErrorDetails
 Object wrapping the last occurred exception. More...
 

Functions

def get_error_details (full_traceback=True, 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')
 

Function Documentation

◆ get_error_details()

def robot.utils.error.get_error_details (   full_traceback = True,
  exclude_robot_traces = EXCLUDE_ROBOT_TRACES 
)

Returns error message and details of the last occurred exception.

Definition at line 39 of file error.py.

◆ get_error_message()

def 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 34 of file error.py.

Variable Documentation

◆ EXCLUDE_ROBOT_TRACES

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

Definition at line 25 of file error.py.