/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-23 12:57:07 UTC
  • Revision ID: edam@waxworlds.org-20100723125707-qu9jk9vvg2uewx7t
- cleaned up test-main
- fixed comment type
- made sqlite::exec() throw instead of returning sqlite error code

Show diffs side-by-side

added added

removed removed

32
32
{
33
33
 
34
34
 
35
 
class database;
36
 
 
37
 
 
38
35
/**
39
36
 * Main (base) sqlite exception class.
40
37
 */
47
44
public:
48
45
 
49
46
        /**
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
 
        /**
61
47
         * Constructor that takes an sqlite error code and determines it's own
62
 
         * generic error message
 
48
         * error message
63
49
         * @param code the sqlite error code
64
50
         */
65
51
        explicit sqlite_error(