stable_learning_control.common.exceptions

Module containing several SLC exceptions.

Module Contents

exception stable_learning_control.common.exceptions.EnvLoadError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when the saved environment could not be loaded.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initialise the EePoseLookupError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.

exception stable_learning_control.common.exceptions.PolicyLoadError(message='', log_message='', **details)[source]

Bases: Exception

Custom exception that is raised when the saved policy could not be loaded.

log_message

The full log message.

Type:

str

details

Dictionary containing extra Exception information.

Type:

dict

Initialise the EePoseLookupError exception object.

Parameters:
  • message (str, optional) – Exception message specifying whether the exception occurred. Defaults to "".

  • log_message (str, optional) – Full log message. Defaults to "".

  • details (dict) – Additional dictionary that can be used to supply the user with more details about why the exception occurred.