DOM
The QuotaExceededError() constructor creates a new QuotaExceededError object.
Syntax
new QuotaExceededError()
new QuotaExceededError(message)
new QuotaExceededError(message, options)
Parameters
message- : The DOMException.message. Defaults to
"".
- : The DOMException.message. Defaults to
options- : An object that can have the following properties:
quota- : A number representing the system-defined storage quota (in bytes) that was exceeded, or
undefinedif the information isn't available. Corresponds to QuotaExceededError.quota.
- : A number representing the system-defined storage quota (in bytes) that was exceeded, or
requested- : A number representing the amount of storage (in bytes) that was requested during the operation, or
undefinedif the information isn't available. Corresponds to QuotaExceededError.requested.
- : A number representing the amount of storage (in bytes) that was requested during the operation, or
- : An object that can have the following properties:
Exceptions
- RangeError
- : Thrown if
option.quotaoroptions.requestedis negative, or ifoption.requested < option.quota.
- : Thrown if
Specifications
Browser compatibility
See also
- DOMException/DOMException
- QuotaExceededError
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
