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.idlScriptable 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

AttributeTypeDescription
messageAUTF8StringA human readable error string with details; this may be null if no details are available. Read only.
resultlongOne of the error code values listed under Constants on this page.

Constants

ConstantValueDescription
ERROR1General SQL error, or missing database
IOERR10A disk I/O error occurred.
CORRUPT11The database on disk is malformed.
FULL13An insertion failed because the database is full.
CANTOPEN14Unable to open the database file.
EMPTY16The database is empty.
SCHEMA17The database schema changed.
TOOBIG18A string or blob exceeds the size limit.
CONSTRAINT19Aborted due to a constraint violation.
INTERNAL2An internal logic error occurred.
MISMATCH20A data type mismatch occurred.
MISUSE21Library used incorrectly.
NOLFS22Attempted to use OS features not supported on the host system.
AUTH23Authorization denied.
FORMAT24Auxiliary database format error.
NOTADB26The opened file is not a database.
PERM3Access permission denied.
ABORT4A callback routine requested an abort.
BUSY5The database file is locked.
LOCKED6A table in the database is locked.
NOMEM7A memory allocation failed.
READONLY8Attempted to write to a read-only database.
INTERRUPT9The operation was terminated by an interrupt.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:96 次

字数:5002

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文