webidl.idl (2472B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Web IDL Standard (https://webidl.spec.whatwg.org/) 5 6 [Exposed=*, Serializable] 7 interface QuotaExceededError : DOMException { 8 constructor(optional DOMString message = "", optional QuotaExceededErrorOptions options = {}); 9 10 readonly attribute double? quota; 11 readonly attribute double? requested; 12 }; 13 14 dictionary QuotaExceededErrorOptions { 15 double quota; 16 double requested; 17 }; 18 19 typedef (Int8Array or Int16Array or Int32Array or 20 Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or 21 BigInt64Array or BigUint64Array or 22 Float16Array or Float32Array or Float64Array or DataView) ArrayBufferView; 23 24 typedef (ArrayBufferView or ArrayBuffer) BufferSource; 25 typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource; 26 [Exposed=*, 27 Serializable] 28 interface DOMException { // but see below note about JavaScript binding 29 constructor(optional DOMString message = "", optional DOMString name = "Error"); 30 readonly attribute DOMString name; 31 readonly attribute DOMString message; 32 readonly attribute unsigned short code; 33 34 const unsigned short INDEX_SIZE_ERR = 1; 35 const unsigned short DOMSTRING_SIZE_ERR = 2; 36 const unsigned short HIERARCHY_REQUEST_ERR = 3; 37 const unsigned short WRONG_DOCUMENT_ERR = 4; 38 const unsigned short INVALID_CHARACTER_ERR = 5; 39 const unsigned short NO_DATA_ALLOWED_ERR = 6; 40 const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7; 41 const unsigned short NOT_FOUND_ERR = 8; 42 const unsigned short NOT_SUPPORTED_ERR = 9; 43 const unsigned short INUSE_ATTRIBUTE_ERR = 10; 44 const unsigned short INVALID_STATE_ERR = 11; 45 const unsigned short SYNTAX_ERR = 12; 46 const unsigned short INVALID_MODIFICATION_ERR = 13; 47 const unsigned short NAMESPACE_ERR = 14; 48 const unsigned short INVALID_ACCESS_ERR = 15; 49 const unsigned short VALIDATION_ERR = 16; 50 const unsigned short TYPE_MISMATCH_ERR = 17; 51 const unsigned short SECURITY_ERR = 18; 52 const unsigned short NETWORK_ERR = 19; 53 const unsigned short ABORT_ERR = 20; 54 const unsigned short URL_MISMATCH_ERR = 21; 55 const unsigned short QUOTA_EXCEEDED_ERR = 22; 56 const unsigned short TIMEOUT_ERR = 23; 57 const unsigned short INVALID_NODE_TYPE_ERR = 24; 58 const unsigned short DATA_CLONE_ERR = 25; 59 }; 60 61 callback Function = any (any... arguments); 62 callback VoidFunction = undefined ();