/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 09:17:03 UTC
  • Revision ID: edam@waxworlds.org-20100723091703-3siqjj6eeux9hupz
- added NEWS
- added library checks to configure.ac
- added query::iterators
- remove dependency that rows have on querys (since querys have to be dependent on rows for boost::iterator_facade to work)
- rows now have the handle to the sqlite3 statement and know a count of their row number
- added convenience function tht can be used to detect presence of sqlite3cc in other packages
- updated test-main
- renamed all subdir.mk files to emake.mk

Show diffs side-by-side

added added

removed removed

46
46
        /**
47
47
         * Constructor that takes an sqlite error code and determines it's own
48
48
         * error message
49
 
         * @param error_code the sqlite error code
 
49
         * @param code the sqlite error code
50
50
         */
51
51
        explicit sqlite_error(
52
 
                int error_code );
 
52
                int code );
53
53
 
54
54
        /**
55
55
         * Constructor that allows the creation of an sqlite error with a custom
56
56
         * message.
57
57
         * @param message a customer error message string
58
 
         * @param error_code the sqlite error code
 
58
         * @param code the sqlite error code
59
59
         */
60
60
        explicit sqlite_error(
61
61
                const std::string &message,
62
 
                int error_code = SQLITE_ERROR );
 
62
                int code = SQLITE_ERROR );
63
63
 
64
64
        virtual ~sqlite_error() throw( );
65
65
 
71
71
         * Get the sqlite error code associated with this error
72
72
         * @returns the sqlite error code
73
73
         */
74
 
        int get_error_code() const;
 
74
        int get_code() const;
75
75
 
76
76
        /**
77
77
         * Get the error message
88
88
         * @param the sqlite error code
89
89
         * @returns the automatic string
90
90
         */
91
 
        const std::string &get_error_message(
92
 
                int error_code );
 
91
        const std::string &get_message(
 
92
                int code );
93
93
 
94
94
        /** the error code */
95
 
        int _error_code;
 
95
        int _code;
96
96
 
97
97
        /** the message string */
98
98
        std::string _message;