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
messageOptional-
The
message. Defaults to"". optionsOptional-
An object that can have the following properties:
quotaOptional-
A number representing the system-defined storage quota (in bytes) that was exceeded, or
undefinedif the information isn't available. Corresponds toQuotaExceededError.quota. requestedOptional-
A number representing the amount of storage (in bytes) that was requested during the operation, or
undefinedif the information isn't available. Corresponds toQuotaExceededError.requested.
Exceptions
RangeError-
Thrown if
option.quotaoroptions.requestedis negative, or ifoption.requested < option.quota.
Specifications
| Specification |
|---|
| Web IDL # dom-quotaexceedederror-quotaexceedederror |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
QuotaExceededError() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.