mozIStorageError 编辑
Draft
This page is not complete.
The mozIStorageError
interface represents errors returned by the Storage API, offering attributes to obtain the error code as well as a human-readable error message corresponding to the error that occurred.
storage/public/mozIStorageError.idl
Scriptable Please add a summary to this article. Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)Inherits from: nsISupports
Attributes
Attribute | Type | Description |
message | AUTF8String | A human readable error string with details; this may be null if no details are available. Read only. |
result | long | One of the error code values listed under Constants on this page. |
Constants
Constant | Value | Description |
ERROR | 1 | General SQL error, or missing database |
IOERR | 10 | A disk I/O error occurred. |
CORRUPT | 11 | The database on disk is malformed. |
FULL | 13 | An insertion failed because the database is full. |
CANTOPEN | 14 | Unable to open the database file. |
EMPTY | 16 | The database is empty. |
SCHEMA | 17 | The database schema changed. |
TOOBIG | 18 | A string or blob exceeds the size limit. |
CONSTRAINT | 19 | Aborted due to a constraint violation. |
INTERNAL | 2 | An internal logic error occurred. |
MISMATCH | 20 | A data type mismatch occurred. |
MISUSE | 21 | Library used incorrectly. |
NOLFS | 22 | Attempted to use OS features not supported on the host system. |
AUTH | 23 | Authorization denied. |
FORMAT | 24 | Auxiliary database format error. |
NOTADB | 26 | The opened file is not a database. |
PERM | 3 | Access permission denied. |
ABORT | 4 | A callback routine requested an abort. |
BUSY | 5 | The database file is locked. |
LOCKED | 6 | A table in the database is locked. |
NOMEM | 7 | A memory allocation failed. |
READONLY | 8 | Attempted to write to a read-only database. |
INTERRUPT | 9 | The operation was terminated by an interrupt. |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论