/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-02-07 15:28:23 UTC
  • Revision ID: edam@waxworlds.org-20100207152823-42k206h6gwy7vla4
- fixed .am files so the library gets built!

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 code the sqlite error code
 
49
         * @param error_code the sqlite error code
50
50
         */
51
51
        explicit sqlite_error(
52
 
                int code );
 
52
                int error_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 code the sqlite error code
 
58
         * @param error_code the sqlite error code
59
59
         */
60
60
        explicit sqlite_error(
61
61
                const std::string &message,
62
 
                int code = SQLITE_ERROR );
 
62
                int error_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_code() const;
 
74
        int get_error_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_message(
92
 
                int code );
 
91
        const std::string &get_error_message(
 
92
                int error_code );
93
93
 
94
94
        /** the error code */
95
 
        int _code;
 
95
        int _error_code;
96
96
 
97
97
        /** the message string */
98
98
        std::string _message;