exc.py 856 B

12345678910111213141516171819202122232425262728293031323334
  1. class PluginDaemonError(Exception):
  2. """Base class for all plugin daemon errors."""
  3. def __init__(self, description: str) -> None:
  4. self.description = description
  5. class PluginDaemonInternalServerError(PluginDaemonError):
  6. description: str = "Internal Server Error"
  7. class PluginDaemonBadRequestError(PluginDaemonError):
  8. description: str = "Bad Request"
  9. class PluginDaemonNotFoundError(PluginDaemonError):
  10. description: str = "Not Found"
  11. class PluginUniqueIdentifierError(PluginDaemonError):
  12. description: str = "Unique Identifier Error"
  13. class PluginNotFoundError(PluginDaemonError):
  14. description: str = "Plugin Not Found"
  15. class PluginDaemonUnauthorizedError(PluginDaemonError):
  16. description: str = "Unauthorized"
  17. class PluginPermissionDeniedError(PluginDaemonError):
  18. description: str = "Permission Denied"