Source code for neugym.exception

"""Base exceptions and errors for NeuGym"""

__all__ = [
    "NeuGymException",
    "NeuGymError",
    "NeuGymNotImplementedError",
    "NeuGymConnectivityError",
    "NeuGymCheckpointError",
    "NeuGymOverwriteError",
    "NeuGymPermissionError"
]


[docs] class NeuGymException(Exception): """Base class for exceptions in NeuGym."""
[docs] class NeuGymError(NeuGymException): """Exception for a serious error in NeuGym."""
[docs] class NeuGymNotImplementedError(NeuGymException): """Exception raised by functions not implemented."""
[docs] class NeuGymConnectivityError(NeuGymException): """Exception raised when the connectivity of the world will be illegal."""
[docs] class NeuGymCheckpointError(NeuGymException): """Exception raised when the state for reset environment is not found."""
[docs] class NeuGymOverwriteError(NeuGymException): """Exception raised when trying to overwrite something exists without permission."""
[docs] class NeuGymPermissionError(NeuGymException): """Exception raised when trying to do something not allowed."""