Exceptions¶
-
exception mundo.api.exceptions.CommandExecutionError(
error: mundo.api.errors.Error
)¶ Exception raised for command execution errors in a controller.
-
__init__(
error: mundo.api.errors.Error
) None ¶ Creates a new CommandExecutionError exception.
- Parameters
error – The generic system error type
-
__init__(
-
exception mundo.api.exceptions.AssetNotFoundError(
path: str
)¶ Exception raised if an application asset could not be loaded.
-
__init__(
path: str
) None ¶ Creates a new AssetNotFoundError exception.
- Parameters
path – Absolute path to the asset that could not be loaded
-
__init__(
-
exception mundo.api.exceptions.AngleTooLargeError(
message='Too large given angle'
)¶ Exception raised for an input angle that is larger than 90 degrees.
-
__init__(
message='Too large given angle'
) None ¶ Creates a new AngleTooLargeError exception.
- Parameters
error – The error message
-
__init__(
-
exception mundo.api.exceptions.AllowedWidthError(
message='Hole is larger then probe diameter or error margin is too large'
)¶ Exception raised for an input angle that is larger than 90 degrees.
-
__init__(
message='Hole is larger then probe diameter or error margin is too large'
) None ¶ Creates a new AllowedWidthError exception.
- Parameters
message – The error message
-
__init__(
-
exception mundo.api.exceptions.InvalidPluginError(
message: str
)¶ Exception raised if a loaded plugin could not be initialized.
-
__init__(
message: str
) None ¶ Creates a new InvalidPluginError exception.
- Parameters
message – Error message
-
__init__(
-
exception mundo.api.exceptions.CreateThreadError(
message: str
)¶ Exception raised if a thread could not be created.
-
__init__(
message: str
) None ¶ Creates a new CreateThreadError exception.
- Parameters
message – Error message
-
__init__(
-
exception mundo.api.exceptions.ResponseInvalidError(
error: mundo.api.errors.Error
)¶ Exception raised if response from a controller was unsuccessful.
-
__init__(
error: mundo.api.errors.Error
) None ¶ Creates a new ResponseInvalidError exception.
- Parameters
message – Error message
-
__init__(
-
exception mundo.api.exceptions.StateChangeError(
current_state: str,
expected_state: str
)¶ Exception raised if a state change was unable to be performed. There are only a specified allowed state space changes allowed. Each controller have their own specified state diagram, if you are unsure on what states are allowed to be done, please refer to the state diagram in the documentaiton for your controller (if available)
-
__init__(
current_state: str,
expected_state: str
) None ¶ Creates a new StateChangeError exception.
- Parameters
message – Error message
-
__init__(