Search completed in 0.89 seconds.
Animation.pause() - Web APIs
exceptions
invalidstateerror the animation's currenttime is unresolved (for example, if it's never been played or isn't currently playing) and the end time of the animation is positive infinity.
... throws an
invalidstateerror if the animation's currenttime is unresolved (perhaps it hasn't started playing yet) and the end time of the animation is positive infinity.
IDBCursor.continuePrimaryKey() - Web APIs
calling this method more than once before new cursor data has been loaded - for example, calling continueprimarykey() twice from the same onsuccess handler - results in an
invalidstateerror being thrown on the second call because the cursor’s got value flag has been unset.
...
invalidstateerror the cursor is currently being iterated or has iterated past its end.
IDBDatabase.createObjectStore() - Web APIs
exceptions this method may raise a domexception with a domerror of one of the following types: exception description
invalidstateerror occurs if the method was not called from a versionchange transaction callback.
...has been deleted or removed.) in firefox previous to version 41, an
invalidstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) constrainterror an object store with the given name (based on case-sensitive comparison) already exists in the connected database.
IDBDatabase.deleteObjectStore() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror occurs if the method was not called from a versionchange transaction callback.
...has been deleted or removed.) in firefox previous to version 41, an
invalidstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) notfounderror you are trying to delete an object store that does not exist.
IDBObjectStore.createIndex() - Web APIs
invalidstateerror occurs if either: the method was not called from a versionchange transaction mode callback, i.e.
...has been deleted or removed.) in firefox previous to version 41, an
invalidstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) example in the following example you can see the idbopendbrequest.onupgradeneeded handler being used to update the database structure if a database with a higher version number is loaded.
IDBObjectStore.deleteIndex() - Web APIs
return value undefined exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror occurs if the method was not called from a versionchange transaction mode callback.
...has been deleted or removed.) in firefox previous to version 41, an
invalidstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) notfounderror occurs if there is no index with the given name (case-sensitive) in the database.
IDBRequest - Web APIs
when the state is still pending, any attempt to access the result or error raises an
invalidstateerror exception.
...if the the request failed and the result is not available, an
invalidstateerror exception is thrown.
IDBTransaction.commit() - Web APIs
if it is called on a transaction that is not active, it throws an
invalidstateerror domexception.
... exceptions exception description
invalidstateerror the transaction state is not active.
Index - Web APIs
if it is called on a transaction that is not active, it throws and
invalidstateerror domexcetion.
...if the context is not currently suspended or the rendering has not started, the promise is rejected with
invalidstateerror.
MediaRecorder.onerror - Web APIs
invalidstateerror an attempt was made to stop or pause or an inactive recorder, start or resume an active recorder, or otherwise manipulate the mediarecorder while in the wrong state.
... function recordstream(stream) { let recorder = null; let bufferlist = []; try { recorder = new mediarecorder(stream); } catch(err) { return err.name; /* return the error name */ } recorder.ondataavailable = function(event) { bufferlist.push(event.data); }; recorder.onerror = function(event) { let error = event.error; switch(error.name) { case
invalidstateerror: shownotification("you can't record the video right " + "now.
OfflineAudioContext.resume() - Web APIs
if the context is not currently suspended or the rendering has not started, the promise is rejected with
invalidstateerror.
...
invalidstateerror if the context is not currently suspended or the rendering has not started.
RTCPeerConnection.setRemoteDescription() - Web APIs
invalidstateerror the rtcpeerconnection is closed, or it's in a state which isn't compatible with the specified description's type.
... exceptions when using the deprecated callback-based version of setremotedescription(), the following exceptions may occur:
invalidstateerror the connection's signalingstate is "closed", indicating that the connection is not currently open, so negotiation cannot take place.
RTCRtpTransceiver.direction - Web APIs
exceptions when setting the value of direction, the following exceptions can occur:
invalidstateerror either the receiver's rtcpeerconnection is closed or the rtcrtpreceiver is stopped.
... usage notes setting the direction when you change the value of direction, an
invalidstateerror exception will occur if the connection is closed or the receiver is stopped.
WebGLRenderingContext.makeXRCompatible() - Web APIs
invalidstateerror the webgl context has been lost or there is no available webxr device.
...*/ outputcanvas.addeventlistener("webglcontextrestored", (event) => { loadsceneresources(currentscene); }); async function onstartedxrsession(xrsession) { try { await gl.makexrcompatible(); } catch(err) { switch(err) { case aborterror: showsimplemessagebox("unable to transfer the game to your xr headset.", "cancel"); break; case
invalidstateerror: showsimplemessagebox("you don't appear to have a compatible xr headset available.", "cancel"); break; default: handlefatalerror(err); break; } xrsession.end(); } } async function handlestartbuttonclick(event) { if (event.target.classlist.contains("use-webxr") && navigator.xr) { try { xrsession = await navigator.xr.requestsession("immer...
WebIDL bindings
an example of how this could work: if (!isvalid(passedinobject)) { throw new this.contentwindow.typeerror("object is invalid"); } or if (!isvalid(passedinobject)) { throw new this.contentwindow.domexception("object is invalid", "
invalidstateerror"); } depending on which exact exception the specification calls for throwing in this situation.
CSSStyleSheet.insertRule() - Web APIs
if rule is @namespace and the rule-list has more than just @import at-rules and/or @namespace at-rules, the method aborts with an
invalidstateerror.
DOMError - Web APIs
notsupportederror the operation is not supported
invalidstateerror the object is in an invalid state.
DOMException - Web APIs
(legacy code value: 9 and legacy constant name: not_supported_err)
invalidstateerror the object is in an invalid state.
DOMMatrixReadOnly - Web APIs
throws an
invalidstateerror exception if any of the elements in the matrix are non-finite (even if, in the case of a 2d matrix, the non-finite values are in elements not used by the 2d matrix representation).
ExtendableEvent - Web APIs
if waituntil() is called outside of the extendableevent handler, the browser should throw an
invalidstateerror; note also that multiple calls will stack up, and the resulting promises will be added to the list of extend lifetime promises.
HTMLInputElement.stepDown() - Web APIs
if the form control is non time, date, or numeric in nature, and therefore does not support the step attribute (see the list of supported input types in the the table above), or if the step value is set to any, an
invalidstateerror exception is thrown.
HTMLInputElement.stepUp() - Web APIs
if the form control is non time, date, or numeric in nature, and therefore does not support the step attribute (see the list of supported input types in the the table above), or if the step value is set to any, an
invalidstateerror exception is thrown.
IDBCursor.delete() - Web APIs
invalidstateerror the cursor was created using idbindex.openkeycursor, is currently being iterated, or has iterated past its end.
IDBCursor.update() - Web APIs
invalidstateerror the cursor was created using idbindex.openkeycursor, is currently being iterated, or has iterated past its end.
IDBDatabase.transaction() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror the close() method has previously been called on this idbdatabase instance.
IDBIndex.name - Web APIs
invalidstateerror the index, or its object store, has been deleted; or the current transaction is not an upgrade transaction.
IDBObjectStore.count() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror this idbobjectstore has been deleted.
IDBObjectStore.index() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror the source object store has been deleted, or the transaction for the object store has finished.
IDBObjectStore.name - Web APIs
invalidstateerror either the object store has been deleted or the current transaction is not an upgrade transaction; you can only rename indexes during upgrade transactions; that is, when the mode is "versionchange".
IDBObjectStore.openCursor() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror this idbobjectstore or idbindex has been deleted.
IDBObjectStore.openKeyCursor() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description
invalidstateerror this idbobjectstore or idbindex has been deleted.
IDBRequest.error - Web APIs
for example, if the the request failed and the result is not available, the
invalidstateerror exception is thrown.
IDBTransaction.abort() - Web APIs
syntax transaction.abort(); exceptions this method may raise a domexception of the following type: exception description
invalidstateerror the transaction has already been committed or aborted.
MediaRecorder.start() - Web APIs
invalidstateerror the mediarecorder is not in the inactive state; you can't start recording media if it's already being recorded.
MediaSource.duration - Web APIs
invalidstateerror mediasource.readystate is not equal to open, or one or more of the sourcebuffer objects in mediasource.sourcebuffers are being updated (i.e.
MediaSource.endOfStream() - Web APIs
return value undefined exceptions exception explanation
invalidstateerror mediasource.readystate is not equal to open, or one or more of the sourcebuffer objects in mediasource.sourcebuffers are being updated (i.e.
MerchantValidationEvent.complete() - Web APIs
exceptions this exception may be passed into the rejection handler for the promise:
invalidstateerror the event did not come directly from the user agent, but was instead dispatched by other code.
OfflineAudioContext.suspend() - Web APIs
invalidstateerror if the quantized frame number is one of the following: a negative number is less than or equal to the current time is greater than or equal to the total render duration is scheduled by another suspend for the same time specifications specification status comment web audio apithe definition of 'suspend()' in that specification.
PaymentRequest.show() - Web APIs
invalidstateerror the promise rejects with an
invalidstateerror if the same payment has already been shown for this request (its state is interactive because it is being shown already).
RTCDTMFSender.insertDTMF() - Web APIs
return value undefined exceptions
invalidstateerror the dtmf tones couldn't be sent because the track has been stopped, or is in a read-only or inactive state.
RTCDataChannel.send() - Web APIs
exceptions
invalidstateerror since the data channel uses a separate transport channel from the media content, it must establish its own connection; if it hasn't finished doing so (that is, its readystate is "connecting"), this error occurs without sending or buffering the data.
RTCPeerConnection.setLocalDescription() - Web APIs
deprecated exceptions when using the deprecated callback-based version of setlocaldescription(), the following exceptions may occur:
invalidstateerror the connection's signalingstate is "closed", indicating that the connection is not currently open, so negotiation cannot take place.
SourceBuffer.abort() - Web APIs
exceptions exception explanation
invalidstateerror the mediasource.readystate property of the parent media source is not equal to open, or this sourcebuffer has been removed from the mediasource.
SourceBuffer.changeType() - Web APIs
invalidstateerror the sourcebuffer is not a member of the parent media source's sourcebuffers list, or the buffer's updating property indicates that a previously queued appendbuffer() or remove() is still being processed.
SourceBuffer.remove() - Web APIs
invalidstateerror the sourcebuffer.updating property is equal to true, or this sourcebuffer has been removed from the mediasource.
XMLHttpRequest.send() - Web APIs
exceptions exception description
invalidstateerror send() has already been invoked for the request, and/or the request is complete.
XRFrame.getViewerPose() - Web APIs
exceptions
invalidstateerror a domexception indicating that getviewerpose() was not called within the context of a callback to a session's xrsession.requestanimationframe().
XRSystem: requestSession() - Web APIs
exceptions this method doesn't throw true exceptions; instead, it rejects the returned promise, passing into it a domexception whose name is one of the following:
invalidstateerror the requested session mode is immersive-vr but there is already an immersive vr session either currently active or in the process of being set up.
XRWebGLLayer() - Web APIs
exceptions
invalidstateerror the new xrwebgllayer could not be created due to one of a number of possible state errors: the xrsession specified by session has already been stopped.
XRWebGLLayer.getViewport() - Web APIs
exceptions
invalidstateerror either the specified view is not in an active xrframe or that xrframe and the xrwebgllayer are not part of the same webxr session.