QuotaExceededError: QuotaExceededError() constructor
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The QuotaExceededError()
constructor creates a new QuotaExceededError
object.
Syntax
new QuotaExceededError()
new QuotaExceededError(message)
new QuotaExceededError(message, options)
Parameters
message
Optional-
The
message
. Defaults to""
. options
Optional-
An object that can have the following properties:
quota
Optional-
A number representing the system-defined storage quota (in bytes) that was exceeded, or
undefined
if the information isn't available. Corresponds toQuotaExceededError.quota
. requested
Optional-
A number representing the amount of storage (in bytes) that was requested during the operation, or
undefined
if the information isn't available. Corresponds toQuotaExceededError.requested
.
Exceptions
RangeError
-
Thrown if
option.quota
oroptions.requested
is negative, or ifoption.requested < option.quota
.
Specifications
Specification |
---|
Web IDL> # dom-quotaexceedederror-quotaexceedederror> |
Browser compatibility
Loading…