1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 sts=2 expandtab
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
15 [scriptable
, uuid(1f350f96
-7023-434a
-8864-40a1c493aac1
)]
16 interface mozIStorageError
: nsISupports
{
19 * General SQL error or missing database.
24 * Internal logic error.
26 const long INTERNAL
= 2;
29 * Access permission denied.
34 * A callback routine requested an abort.
39 * The database file is locked.
44 * A table in the database is locked.
46 const long LOCKED
= 6;
49 * An allocation failed.
54 * Attempt to write to a readonly database.
56 const long READONLY = 8;
59 * Operation was terminated by an interrupt.
61 const long INTERRUPT
= 9;
64 * Some kind of disk I/O error occurred.
66 const long IOERR
= 10;
69 * The database disk image is malformed.
71 const long CORRUPT
= 11;
74 * An insertion failed because the database is full.
79 * Unable to open the database file.
81 const long CANTOPEN
= 14;
84 * The database is empty.
86 const long EMPTY
= 16;
89 * The database scheme changed.
91 const long SCHEMA
= 17;
94 * A string or blob exceeds the size limit.
96 const long TOOBIG
= 18;
99 * Abort due to a constraint violation.
101 const long CONSTRAINT
= 19;
104 * Data type mismatch.
106 const long MISMATCH
= 20;
109 * Library used incorrectly.
111 const long MISUSE
= 21;
114 * Uses OS features not supported on the host system.
116 const long NOLFS
= 22;
119 * Authorization denied.
121 const long AUTH
= 23;
124 * Auxiliary database format error.
126 const long FORMAT
= 24;
129 * Attempt to bind a parameter using an out-of-range index or nonexistent
130 * named parameter name.
132 const long RANGE = 25;
135 * File opened that is not a database file.
137 const long NOTADB
= 26;
141 * Indicates what type of error occurred.
143 readonly attribute
long result
;
146 * An error string the gives more details, if available.
148 readonly attribute AUTF8String
message;