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.
 
 
 
 
 

27 lines
670 B

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