exceptions.py 887 B

1234567891011121314151617181920212223242526272829303132
  1. class Error(Exception):
  2. """Generic exception that is the base exception of all other error
  3. exceptions.
  4. This exception is part of the `DBAPI 2.0 specification
  5. <http://www.python.org/dev/peps/pep-0249/>`_.
  6. """
  7. pass
  8. class InterfaceError(Error):
  9. """Generic exception raised for errors that are related to the database
  10. interface rather than the database itself. For example, if the interface
  11. attempts to use an SSL connection but the server refuses, an InterfaceError
  12. will be raised.
  13. This exception is part of the `DBAPI 2.0 specification
  14. <http://www.python.org/dev/peps/pep-0249/>`_.
  15. """
  16. pass
  17. class DatabaseError(Error):
  18. """Generic exception raised for errors that are related to the database.
  19. This exception is part of the `DBAPI 2.0 specification
  20. <http://www.python.org/dev/peps/pep-0249/>`_.
  21. """
  22. pass