Changeset 434 for trunk/docs


Ignore:
Timestamp:
May 8, 2012, 5:18:10 AM (7 years ago)
Author:
cito
Message:

Add sqlstate attribute to DatabaseError? instances.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.txt

    r414 r434  
    1010- Binary objects are now automatically escaped and unescaped.
    1111- Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
     12- All DatabaseError instances now have a sqlstate attribute.
    1213
    1314Version 4.0 (2009-01-01)
  • trunk/docs/pg.txt

    r423 r434  
    7575
    7676Exceptions raised:
    77   :TypeError: bad argument type, or too many arguments
     77  :Type: bad argument type, or too many arguments
    7878  :SyntaxError: duplicate argument definition
    7979  :pg.InternalError: some error occurred during pg connection definition
     
    448448  method returns a `pgqueryobject` that can be accessed via the `getresult()`
    449449  or `dictresult()` method or simply printed. Otherwise, it returns `None`.
     450
     451  When the database could not process the query, a `pg.ProgrammingError` or
     452  a `pg.InternalError` is raised. You can check the "SQLSTATE" code of this
     453  error by reading its `sqlstate` attribute.
    450454
    451455reset - resets the connection
     
    11041108Exceptions raised:
    11051109  :TypeError: too many parameters
    1106   :pg.InternalError: invalid previous result
     1110  :MemoryError: internal memory error
    11071111
    11081112Description:
     
    11251129Exceptions raised:
    11261130  :TypeError: too many parameters
    1127   :pg.InternalError: invalid previous result
     1131  :MemoryError: internal memory error
    11281132
    11291133Description:
     
    11471151Exceptions raised:
    11481152  :TypeError: too many parameters
    1149   :pg.InternalError: invalid previous result, or lost connection
    11501153
    11511154Description:
     
    11681171  :TypeError: invalid connection, bad parameter type, or too many parameters
    11691172  :ValueError: invalid field number
    1170   :pg.InternalError: invalid previous result, or lost connection
    11711173
    11721174Description:
     
    11881190  :TypeError: invalid connection, bad parameter type, or too many parameters
    11891191  :ValueError: unknown field name
    1190   :pg.InternalError: invalid previous result, or lost connection
    11911192
    11921193Description:
     
    12261227deallocate it before the `pglarge` object dereference it.
    12271228All functions return a generic error message on call error, whatever the
    1228 exact error was. The `error` attribute of the object allow to get the exact
     1229exact error was. The `error` attribute of the object allows to get the exact
    12291230error message.
    12301231
     
    14091410  :TypeError: invalid connection or invalid object,
    14101411    bad parameter type, or too many parameters
    1411   :IOError:   object is not closed, or export error
     1412  :IOError: object is not closed, or export error
    14121413
    14131414Description:
Note: See TracChangeset for help on using the changeset viewer.