Error Handling


PySQLite extends the StandardError class with its own Error class, with which errors related to SQLite operations can be handled.

Two subclasses of Error are implementedInterfaceError and DatabaseError. These allow you to detect whether the error originates with the SQLite engine or the PySQLite interface.

The DatabaseError class is further subdivided as follows:

  • DataError

  • OperationalError

  • IntegrityError

  • InternalError

  • ProgrammingError

  • NotSupportedError



    SQLite
    SQLite
    ISBN: 067232685X
    EAN: 2147483647
    Year: 2004
    Pages: 118
    Authors: Chris Newman

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net