stable_learning_control.common.exceptions

Module containing several SLC exceptions.

Exceptions

EnvLoadError

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

PolicyLoadError

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

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[source]

The full log message.

Type:

str

details[source]

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.

log_message[source]
details[source]
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[source]

The full log message.

Type:

str

details[source]

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.

log_message[source]
details[source]