summaryrefslogtreecommitdiffstats
path: root/sql/connection.h
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 04:31:53 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 04:31:53 +0000
commit0d04ede3f14d8c248b5f91687694673df8c145b5 (patch)
tree3c2ea2c08726dd0424cb295c790308280289c890 /sql/connection.h
parentb50b6edf3dee383cae64c39e4b101c848b7ebc74 (diff)
downloadchromium_src-0d04ede3f14d8c248b5f91687694673df8c145b5.zip
chromium_src-0d04ede3f14d8c248b5f91687694673df8c145b5.tar.gz
chromium_src-0d04ede3f14d8c248b5f91687694673df8c145b5.tar.bz2
Move ErrorDelegate to its own file and add static utility functions to ErrorDelegate
BUG=151841 Test=None R=shess, erikwright TBR=cpu Review URL: https://chromiumcodereview.appspot.com/11141012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql/connection.h')
-rw-r--r--sql/connection.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/connection.h b/sql/connection.h
index 1aef064..319517e 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -83,17 +83,17 @@ class SQL_EXPORT ErrorDelegate {
public:
virtual ~ErrorDelegate();
- // |error| is an sqlite result code as seen in sqlite\preprocessed\sqlite3.h
- // |connection| is db connection where the error happened and |stmt| is
- // our best guess at the statement that triggered the error. Do not store
- // these pointers.
+ // |error| is an sqlite result code as seen in sqlite3.h. |connection| is the
+ // db connection where the error happened and |stmt| is our best guess at the
+ // statement that triggered the error. Do not store these pointers.
//
// |stmt| MAY BE NULL if there is no statement causing the problem (i.e. on
// initialization).
//
- // If the error condition has been fixed an the original statement succesfuly
- // re-tried then returning SQLITE_OK is appropiate; otherwise is recomended
- // that you return the original |error| or the appropiae error code.
+ // If the error condition has been fixed and the original statement succesfuly
+ // re-tried then returning SQLITE_OK is appropriate; otherwise it is
+ // recommended that you return the original |error| or the appropriate error
+ // code.
virtual int OnError(int error, Connection* connection, Statement* stmt) = 0;
};