Thanks to visit codestin.com
Credit goes to developer.mozilla.org

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

js
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 to QuotaExceededError.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 to QuotaExceededError.requested.

Exceptions

RangeError

Thrown if option.quota or options.requested is negative, or if option.requested < option.quota.

Specifications

Specification
Web IDL
# dom-quotaexceedederror-quotaexceedederror

Browser compatibility

See also