Home
last modified time | relevance | path

Searched refs:DOMException (Results 1 - 21 of 21) sorted by relevance

/third_party/python/Lib/xml/dom/
H A D__init__.py62 class DOMException(Exception): class
67 if self.__class__ is DOMException:
69 "DOMException should not be instantiated directly")
76 class IndexSizeErr(DOMException):
79 class DomstringSizeErr(DOMException):
82 class HierarchyRequestErr(DOMException):
85 class WrongDocumentErr(DOMException):
88 class InvalidCharacterErr(DOMException):
91 class NoDataAllowedErr(DOMException):
94 class NoModificationAllowedErr(DOMException)
[all...]
/third_party/node/lib/internal/per_context/
H A Ddomexception.js51 class DOMException {
82 throwInvalidThisError(TypeError, 'DOMException');
90 throwInvalidThisError(TypeError, 'DOMException');
98 throwInvalidThisError(TypeError, 'DOMException');
110 ObjectSetPrototypeOf(DOMException.prototype, ErrorPrototype);
111 ObjectDefineProperties(DOMException.prototype, {
112 [SymbolToStringTag]: { __proto__: null, configurable: true, value: 'DOMException' },
148 ObjectDefineProperty(DOMException, codeName, desc);
149 ObjectDefineProperty(DOMException.prototype, codeName, desc);
153 exports.DOMException
[all...]
/third_party/node/test/parallel/
H A Dtest-domexception-cause.js7 const domException = new DOMException('no cause', 'abc');
14 const domException = new DOMException('with undefined cause', { name: 'abc', cause: undefined });
21 const domException = new DOMException('with string cause', { name: 'abc', cause: 'foo' });
29 const domException = new DOMException('with object cause', { name: 'abc', cause: object });
H A Dtest-worker-message-port-transfer-closed.js26 const DOMException = err.constructor;
27 assert.ok(err instanceof DOMException);
28 assert.strictEqual(DOMException.name, 'DOMException');
H A Dtest-abortcontroller.js237 ok(signal.reason instanceof DOMException);
242 ok(ac.signal.reason instanceof DOMException);
H A Dtest-child-process-exec-abortcontroller-promisified.js23 cause: new DOMException('This operation was aborted', 'AbortError'),
/third_party/node/lib/internal/webstreams/
H A Dtransfer.js15 DOMException,
44 // DOMException is not transferable/cloneable. This provides us
47 // prototype. We can revisit this if DOMException is ever made
49 class CloneableDOMException extends DOMException {
102 DOMException));
162 if (error instanceof DOMException) {
235 if (error instanceof DOMException) {
254 if (error instanceof DOMException) {
H A Dtransformstream.js24 DOMException,
217 throw new DOMException(
222 throw new DOMException(
/third_party/node/deps/undici/src/lib/websocket/
H A Dwebsocket.js4 const { DOMException } = require('../fetch/constants')
70 // 3. If urlRecord is failure, then throw a "SyntaxError" DOMException.
71 throw new DOMException(e, 'SyntaxError')
82 // 6. If urlRecord’s scheme is not "ws" or "wss", then throw a "SyntaxError" DOMException.
84 throw new DOMException(
91 // DOMException.
93 throw new DOMException('Got fragment', 'SyntaxError')
105 // protocol, then throw a "SyntaxError" DOMException.
107 throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')
111 throw new DOMException('Invali
[all...]
/third_party/node/lib/internal/bootstrap/
H A Dbrowser.js28 'DOMException',
30 const DOMException = lazyDOMExceptionClass();
31 exposeInterface(globalThis, 'DOMException', DOMException);
32 return DOMException;
35 exposeInterface(globalThis, 'DOMException', value);
/third_party/node/lib/internal/
H A Dabort_controller.js52 DOMException,
128 new DOMException(
176 reason = new DOMException('This operation was aborted', 'AbortError')) {
401 abort(reason = new DOMException('This operation was aborted', 'AbortError')) {
H A Dutil.js664 _DOMException ??= internalBinding('messaging').DOMException;
669 _DOMException ??= internalBinding('messaging').DOMException;
/third_party/node/test/fixtures/wpt/dom/abort/resources/
H A Dabort-signal-any-tests.js60 assert_true(combinedSignal.reason instanceof DOMException,
61 "signal.reason is a DOMException");
120 assert_true(combinedSignal2.reason instanceof DOMException,
121 "signal.reason is a DOMException");
135 assert_true(combinedSignal.reason instanceof DOMException,
136 "combinedSignal.reason is a DOMException");
/third_party/node/deps/undici/src/lib/fileapi/
H A Dutil.js12 const { DOMException } = require('../fetch/constants')
34 // DOMException.
36 throw new DOMException('Invalid state', 'InvalidStateError')
/third_party/node/lib/internal/worker/
H A Dio.js42 DOMException,
494 throw new DOMException('BroadcastChannel is closed.');
496 throw new DOMException('Message could not be posted.');
/third_party/node/deps/undici/src/lib/fetch/
H A Dresponse.js19 DOMException
437 ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))
438 : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))
H A Dindex.js54 DOMException
106 // 2. Let fallbackError be an "AbortError" DOMException.
109 error = new DOMException('The operation was aborted.', 'AbortError')
333 error = new DOMException('The operation was aborted.', 'AbortError')
1591 this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
1733 // 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller.
1977 abort(new DOMException('The operation was aborted.', 'AbortError'))
/third_party/node/deps/undici/src/lib/cache/
H A Dcache.js238 responsePromise.reject(new DOMException('aborted', 'AbortError'))
612 throw new DOMException('???', 'InvalidStateError')
/third_party/node/deps/undici/
H A Dundici.js1051 var DOMException = globalThis.DOMException ?? (() => {
1074 DOMException,
1190 return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException");
5236 var { DOMException, structuredClone } = require_constants2();
5425 throw new DOMException("The operation was aborted.", "AbortError");
5469 throw new DOMException(`${err}`, "AbortError");
5625 DOMException
5896 return isAborted(fetchParams) ? makeNetworkError(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException("Reques
[all...]
/third_party/node/test/fixtures/wpt/resources/
H A Dtestharness.js814 * Assert that a Promise is rejected with the right DOMException.
819 * 1) If the DOMException is expected to come from the current global, the
823 * 2) If the DOMException is expected to come from some other global, the
824 * third argument should be the DOMException constructor from that global,
846 promiseOrConstructor.name === "DOMException") {
851 constructor = self.DOMException;
2109 * Assert a DOMException with the expected type is thrown.
2113 * 1) If the DOMException is expected to come from the current global, the
2117 * 2) If the DOMException is expected to come from some other global, the
2118 * second argument should be the DOMException constructo
[all...]
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dstylo.hpp[all...]

Completed in 42 milliseconds