Bug 1890689 remove DynamicResampler::mSetBufferDuration r=pehrsons
[gecko.git] / storage / mozIStorageError.idl
blob1c6df5bb69d7d813bb3f7b4aabd1aa1e172b0c82
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"
9 %{C++
10 #ifdef ERROR
11 #undef ERROR
12 #endif
15 [scriptable, uuid(1f350f96-7023-434a-8864-40a1c493aac1)]
16 interface mozIStorageError : nsISupports {
18 /**
19 * General SQL error or missing database.
21 const long ERROR = 1;
23 /**
24 * Internal logic error.
26 const long INTERNAL = 2;
28 /**
29 * Access permission denied.
31 const long PERM = 3;
33 /**
34 * A callback routine requested an abort.
36 const long ABORT = 4;
38 /**
39 * The database file is locked.
41 const long BUSY = 5;
43 /**
44 * A table in the database is locked.
46 const long LOCKED = 6;
48 /**
49 * An allocation failed.
51 const long NOMEM = 7;
53 /**
54 * Attempt to write to a readonly database.
56 const long READONLY = 8;
58 /**
59 * Operation was terminated by an interrupt.
61 const long INTERRUPT = 9;
63 /**
64 * Some kind of disk I/O error occurred.
66 const long IOERR = 10;
68 /**
69 * The database disk image is malformed.
71 const long CORRUPT = 11;
73 /**
74 * An insertion failed because the database is full.
76 const long FULL = 13;
78 /**
79 * Unable to open the database file.
81 const long CANTOPEN = 14;
83 /**
84 * The database is empty.
86 const long EMPTY = 16;
88 /**
89 * The database scheme changed.
91 const long SCHEMA = 17;
93 /**
94 * A string or blob exceeds the size limit.
96 const long TOOBIG = 18;
98 /**
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;