michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=2 sts=2 expandtab michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: %{C++ michael@0: #ifdef ERROR michael@0: #undef ERROR michael@0: #endif michael@0: %} michael@0: michael@0: [scriptable, uuid(1f350f96-7023-434a-8864-40a1c493aac1)] michael@0: interface mozIStorageError : nsISupports { michael@0: michael@0: /** michael@0: * General SQL error or missing database. michael@0: */ michael@0: const long ERROR = 1; michael@0: michael@0: /** michael@0: * Internal logic error. michael@0: */ michael@0: const long INTERNAL = 2; michael@0: michael@0: /** michael@0: * Access permission denied. michael@0: */ michael@0: const long PERM = 3; michael@0: michael@0: /** michael@0: * A callback routine requested an abort. michael@0: */ michael@0: const long ABORT = 4; michael@0: michael@0: /** michael@0: * The database file is locked. michael@0: */ michael@0: const long BUSY = 5; michael@0: michael@0: /** michael@0: * A table in the database is locked. michael@0: */ michael@0: const long LOCKED = 6; michael@0: michael@0: /** michael@0: * An allocation failed. michael@0: */ michael@0: const long NOMEM = 7; michael@0: michael@0: /** michael@0: * Attempt to write to a readonly database. michael@0: */ michael@0: const long READONLY = 8; michael@0: michael@0: /** michael@0: * Operation was terminated by an interrupt. michael@0: */ michael@0: const long INTERRUPT = 9; michael@0: michael@0: /** michael@0: * Some kind of disk I/O error occurred. michael@0: */ michael@0: const long IOERR = 10; michael@0: michael@0: /** michael@0: * The database disk image is malformed. michael@0: */ michael@0: const long CORRUPT = 11; michael@0: michael@0: /** michael@0: * An insertion failed because the database is full. michael@0: */ michael@0: const long FULL = 13; michael@0: michael@0: /** michael@0: * Unable to open the database file. michael@0: */ michael@0: const long CANTOPEN = 14; michael@0: michael@0: /** michael@0: * The database is empty. michael@0: */ michael@0: const long EMPTY = 16; michael@0: michael@0: /** michael@0: * The database scheme changed. michael@0: */ michael@0: const long SCHEMA = 17; michael@0: michael@0: /** michael@0: * A string or blob exceeds the size limit. michael@0: */ michael@0: const long TOOBIG = 18; michael@0: michael@0: /** michael@0: * Abort due to a constraint violation. michael@0: */ michael@0: const long CONSTRAINT = 19; michael@0: michael@0: /** michael@0: * Data type mismatch. michael@0: */ michael@0: const long MISMATCH = 20; michael@0: michael@0: /** michael@0: * Library used incorrectly. michael@0: */ michael@0: const long MISUSE = 21; michael@0: michael@0: /** michael@0: * Uses OS features not supported on the host system. michael@0: */ michael@0: const long NOLFS = 22; michael@0: michael@0: /** michael@0: * Authorization denied. michael@0: */ michael@0: const long AUTH = 23; michael@0: michael@0: /** michael@0: * Auxiliary database format error. michael@0: */ michael@0: const long FORMAT = 24; michael@0: michael@0: /** michael@0: * Attempt to bind a parameter using an out-of-range index or nonexistent michael@0: * named parameter name. michael@0: */ michael@0: const long RANGE = 25; michael@0: michael@0: /** michael@0: * File opened that is not a database file. michael@0: */ michael@0: const long NOTADB = 26; michael@0: michael@0: michael@0: /** michael@0: * Indicates what type of error occurred. michael@0: */ michael@0: readonly attribute long result; michael@0: michael@0: /** michael@0: * An error string the gives more details, if available. michael@0: */ michael@0: readonly attribute AUTF8String message; michael@0: };