@@ -262,6 +262,69 @@ declare var CustomEvent: {
262
262
new < T > ( type : string , eventInitDict ?: CustomEventInit < T > ) : CustomEvent < T > ;
263
263
} ;
264
264
265
+ /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
266
+ interface DOMException extends Error {
267
+ /** @deprecated */
268
+ readonly code : number ;
269
+ readonly message : string ;
270
+ readonly name : string ;
271
+ readonly ABORT_ERR : number ;
272
+ readonly DATA_CLONE_ERR : number ;
273
+ readonly DOMSTRING_SIZE_ERR : number ;
274
+ readonly HIERARCHY_REQUEST_ERR : number ;
275
+ readonly INDEX_SIZE_ERR : number ;
276
+ readonly INUSE_ATTRIBUTE_ERR : number ;
277
+ readonly INVALID_ACCESS_ERR : number ;
278
+ readonly INVALID_CHARACTER_ERR : number ;
279
+ readonly INVALID_MODIFICATION_ERR : number ;
280
+ readonly INVALID_NODE_TYPE_ERR : number ;
281
+ readonly INVALID_STATE_ERR : number ;
282
+ readonly NAMESPACE_ERR : number ;
283
+ readonly NETWORK_ERR : number ;
284
+ readonly NOT_FOUND_ERR : number ;
285
+ readonly NOT_SUPPORTED_ERR : number ;
286
+ readonly NO_DATA_ALLOWED_ERR : number ;
287
+ readonly NO_MODIFICATION_ALLOWED_ERR : number ;
288
+ readonly QUOTA_EXCEEDED_ERR : number ;
289
+ readonly SECURITY_ERR : number ;
290
+ readonly SYNTAX_ERR : number ;
291
+ readonly TIMEOUT_ERR : number ;
292
+ readonly TYPE_MISMATCH_ERR : number ;
293
+ readonly URL_MISMATCH_ERR : number ;
294
+ readonly VALIDATION_ERR : number ;
295
+ readonly WRONG_DOCUMENT_ERR : number ;
296
+ }
297
+
298
+ declare var DOMException : {
299
+ prototype : DOMException ;
300
+ new ( message ?: string , name ?: string ) : DOMException ;
301
+ readonly ABORT_ERR : number ;
302
+ readonly DATA_CLONE_ERR : number ;
303
+ readonly DOMSTRING_SIZE_ERR : number ;
304
+ readonly HIERARCHY_REQUEST_ERR : number ;
305
+ readonly INDEX_SIZE_ERR : number ;
306
+ readonly INUSE_ATTRIBUTE_ERR : number ;
307
+ readonly INVALID_ACCESS_ERR : number ;
308
+ readonly INVALID_CHARACTER_ERR : number ;
309
+ readonly INVALID_MODIFICATION_ERR : number ;
310
+ readonly INVALID_NODE_TYPE_ERR : number ;
311
+ readonly INVALID_STATE_ERR : number ;
312
+ readonly NAMESPACE_ERR : number ;
313
+ readonly NETWORK_ERR : number ;
314
+ readonly NOT_FOUND_ERR : number ;
315
+ readonly NOT_SUPPORTED_ERR : number ;
316
+ readonly NO_DATA_ALLOWED_ERR : number ;
317
+ readonly NO_MODIFICATION_ALLOWED_ERR : number ;
318
+ readonly QUOTA_EXCEEDED_ERR : number ;
319
+ readonly SECURITY_ERR : number ;
320
+ readonly SYNTAX_ERR : number ;
321
+ readonly TIMEOUT_ERR : number ;
322
+ readonly TYPE_MISMATCH_ERR : number ;
323
+ readonly URL_MISMATCH_ERR : number ;
324
+ readonly VALIDATION_ERR : number ;
325
+ readonly WRONG_DOCUMENT_ERR : number ;
326
+ } ;
327
+
265
328
/** Events providing information related to errors in scripts or in files. */
266
329
interface ErrorEvent extends Event {
267
330
readonly colno : number ;
0 commit comments