/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to include/sqlite3cc/exception.h

  • Committer: edam
  • Date: 2010-07-29 09:16:26 UTC
  • Revision ID: edam@waxworlds.org-20100729091626-h8fmg0r74eyfo5ae
- fixed error caused by finialising in-progress queries during rollback that were later finaliased by RAII.

Show diffs side-by-side

added added

removed removed

32
32
{
33
33
 
34
34
 
 
35
class database;
 
36
 
 
37
 
35
38
/**
36
39
 * Main (base) sqlite exception class.
37
40
 */
44
47
public:
45
48
 
46
49
        /**
 
50
         * Constructor that takes an sqlite error code and a database from which to
 
51
         * determine it's error message
 
52
         * @param code the sqlite error code
 
53
         * @see sqlite_errmsg()
 
54
         */
 
55
        explicit sqlite_error(
 
56
                database &database,
 
57
                int code );
 
58
 
 
59
 
 
60
        /**
47
61
         * Constructor that takes an sqlite error code and determines it's own
48
 
         * error message
 
62
         * generic error message
49
63
         * @param code the sqlite error code
50
64
         */
51
65
        explicit sqlite_error(