def get_error_details(exclude_robot_traces=EXCLUDE_ROBOT_TRACES):
 details = ErrorDetails(exclude_robot_traces=exclude_robot_traces)
 return (details.message, details.traceback)

def get_error_details ( exclude_robot_traces = EXCLUDE_ROBOT_TRACES ) : details = ErrorDetails ( exclude_robot_traces = exclude_robot_traces ) return ( details . message , details . traceback )
returns error message and details of the last occurred exception .