storage/public/mozIStorageError.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 * vim: sw=2 ts=2 sts=2 expandtab
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 %{C++
michael@0 10 #ifdef ERROR
michael@0 11 #undef ERROR
michael@0 12 #endif
michael@0 13 %}
michael@0 14
michael@0 15 [scriptable, uuid(1f350f96-7023-434a-8864-40a1c493aac1)]
michael@0 16 interface mozIStorageError : nsISupports {
michael@0 17
michael@0 18 /**
michael@0 19 * General SQL error or missing database.
michael@0 20 */
michael@0 21 const long ERROR = 1;
michael@0 22
michael@0 23 /**
michael@0 24 * Internal logic error.
michael@0 25 */
michael@0 26 const long INTERNAL = 2;
michael@0 27
michael@0 28 /**
michael@0 29 * Access permission denied.
michael@0 30 */
michael@0 31 const long PERM = 3;
michael@0 32
michael@0 33 /**
michael@0 34 * A callback routine requested an abort.
michael@0 35 */
michael@0 36 const long ABORT = 4;
michael@0 37
michael@0 38 /**
michael@0 39 * The database file is locked.
michael@0 40 */
michael@0 41 const long BUSY = 5;
michael@0 42
michael@0 43 /**
michael@0 44 * A table in the database is locked.
michael@0 45 */
michael@0 46 const long LOCKED = 6;
michael@0 47
michael@0 48 /**
michael@0 49 * An allocation failed.
michael@0 50 */
michael@0 51 const long NOMEM = 7;
michael@0 52
michael@0 53 /**
michael@0 54 * Attempt to write to a readonly database.
michael@0 55 */
michael@0 56 const long READONLY = 8;
michael@0 57
michael@0 58 /**
michael@0 59 * Operation was terminated by an interrupt.
michael@0 60 */
michael@0 61 const long INTERRUPT = 9;
michael@0 62
michael@0 63 /**
michael@0 64 * Some kind of disk I/O error occurred.
michael@0 65 */
michael@0 66 const long IOERR = 10;
michael@0 67
michael@0 68 /**
michael@0 69 * The database disk image is malformed.
michael@0 70 */
michael@0 71 const long CORRUPT = 11;
michael@0 72
michael@0 73 /**
michael@0 74 * An insertion failed because the database is full.
michael@0 75 */
michael@0 76 const long FULL = 13;
michael@0 77
michael@0 78 /**
michael@0 79 * Unable to open the database file.
michael@0 80 */
michael@0 81 const long CANTOPEN = 14;
michael@0 82
michael@0 83 /**
michael@0 84 * The database is empty.
michael@0 85 */
michael@0 86 const long EMPTY = 16;
michael@0 87
michael@0 88 /**
michael@0 89 * The database scheme changed.
michael@0 90 */
michael@0 91 const long SCHEMA = 17;
michael@0 92
michael@0 93 /**
michael@0 94 * A string or blob exceeds the size limit.
michael@0 95 */
michael@0 96 const long TOOBIG = 18;
michael@0 97
michael@0 98 /**
michael@0 99 * Abort due to a constraint violation.
michael@0 100 */
michael@0 101 const long CONSTRAINT = 19;
michael@0 102
michael@0 103 /**
michael@0 104 * Data type mismatch.
michael@0 105 */
michael@0 106 const long MISMATCH = 20;
michael@0 107
michael@0 108 /**
michael@0 109 * Library used incorrectly.
michael@0 110 */
michael@0 111 const long MISUSE = 21;
michael@0 112
michael@0 113 /**
michael@0 114 * Uses OS features not supported on the host system.
michael@0 115 */
michael@0 116 const long NOLFS = 22;
michael@0 117
michael@0 118 /**
michael@0 119 * Authorization denied.
michael@0 120 */
michael@0 121 const long AUTH = 23;
michael@0 122
michael@0 123 /**
michael@0 124 * Auxiliary database format error.
michael@0 125 */
michael@0 126 const long FORMAT = 24;
michael@0 127
michael@0 128 /**
michael@0 129 * Attempt to bind a parameter using an out-of-range index or nonexistent
michael@0 130 * named parameter name.
michael@0 131 */
michael@0 132 const long RANGE = 25;
michael@0 133
michael@0 134 /**
michael@0 135 * File opened that is not a database file.
michael@0 136 */
michael@0 137 const long NOTADB = 26;
michael@0 138
michael@0 139
michael@0 140 /**
michael@0 141 * Indicates what type of error occurred.
michael@0 142 */
michael@0 143 readonly attribute long result;
michael@0 144
michael@0 145 /**
michael@0 146 * An error string the gives more details, if available.
michael@0 147 */
michael@0 148 readonly attribute AUTF8String message;
michael@0 149 };

mercurial