A corporation manager and dashboard for EVE Online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
804 B

  1. # -*- coding: utf-8 -*-
  2. """
  3. This module contains exceptions for Calefaction.
  4. +-- CalefactionError
  5. +-- AccessDeniedError
  6. +-- EVEAPIError
  7. +-- EVEAPIForbiddenError
  8. +-- ZKillboardError
  9. """
  10. class CalefactionError(RuntimeError):
  11. """Base exception class for errors within Calefaction."""
  12. pass
  13. class AccessDeniedError(CalefactionError):
  14. """The user tried to do something they don't have permission for."""
  15. pass
  16. class EVEAPIError(CalefactionError):
  17. """Represents (generally external) errors while using the EVE APIs."""
  18. pass
  19. class EVEAPIForbiddenError(EVEAPIError):
  20. """We tried to make an API request that we don't have permission for."""
  21. pass
  22. class ZKillboardError(EVEAPIError):
  23. """Represents an error while using zKillboard's API."""
  24. pass