A corporation manager and dashboard for EVE Online
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

32 righe
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