Package-level declarations

Types

Link copied to clipboard
open class DOMException(val message: String = definedExternally, val name: DOMExceptionName = definedExternally) : JsError, Serializable

The DOMException interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs.

Link copied to clipboard
Link copied to clipboard
sealed interface DOMExceptionType

[MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException#error_names)

Link copied to clipboard
open class ErrorEvent(val type: EventType<ErrorEvent>, init: ErrorEventInit = definedExternally) : Event

The ErrorEvent interface represents events providing information related to errors in scripts or in files.

Link copied to clipboard
Link copied to clipboard
open class QuotaExceededError(val message: String = definedExternally, options: QuotaExceededErrorOptions = definedExternally) : DOMException, Serializable
Link copied to clipboard

Properties

Link copied to clipboard
val DOMExceptionName.Companion.AbortError: DOMExceptionName

The operation was aborted

Link copied to clipboard
val DOMExceptionName.Companion.ConstraintError: DOMExceptionName

A mutation operation in a transaction failed because a constraint was not satisfied

Link copied to clipboard
val DOMExceptionName.Companion.DataCloneError: DOMExceptionName

The object cannot be cloned

Link copied to clipboard
val DOMExceptionName.Companion.DataError: DOMExceptionName

Provided data is inadequate

Link copied to clipboard
val DOMExceptionName.Companion.EncodingError: DOMExceptionName

The encoding or decoding operation failed

Link copied to clipboard
Link copied to clipboard
val DOMExceptionName.Companion.HierarchyRequestError: DOMExceptionName

The node tree hierarchy is not correct

Link copied to clipboard
val DOMExceptionName.Companion.IndexSizeError: DOMExceptionName

The index is not in the allowed range. For example, this can be thrown by the Range object

Link copied to clipboard
val DOMExceptionName.Companion.InUseAttributeError: DOMExceptionName

The attribute is in use

Link copied to clipboard
val DOMExceptionName.Companion.InvalidAccessError: DOMExceptionName

The object does not support the operation or argument

Link copied to clipboard
val DOMExceptionName.Companion.InvalidCharacterError: DOMExceptionName

The string contains invalid characters

Link copied to clipboard
val DOMExceptionName.Companion.InvalidModificationError: DOMExceptionName

The object cannot be modified in this way

Link copied to clipboard
val DOMExceptionName.Companion.InvalidNodeTypeError: DOMExceptionName

The node is incorrect or has an incorrect ancestor for this operation

Link copied to clipboard
val DOMExceptionName.Companion.InvalidStateError: DOMExceptionName

The object is in an invalid state

Link copied to clipboard
val DOMExceptionName.Companion.NamespaceError: DOMExceptionName

The operation is not allowed by Namespaces in XML

Link copied to clipboard
val DOMExceptionName.Companion.NetworkError: DOMExceptionName

A network error occurred

Link copied to clipboard
val DOMExceptionName.Companion.NoModificationAllowedError: DOMExceptionName

The object cannot be modified

Link copied to clipboard
val DOMExceptionName.Companion.NotAllowedError: DOMExceptionName

The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission

Link copied to clipboard
val DOMExceptionName.Companion.NotFoundError: DOMExceptionName

The object cannot be found here

Link copied to clipboard
val DOMExceptionName.Companion.NotReadableError: DOMExceptionName

The input/output read operation failed

Link copied to clipboard
val DOMExceptionName.Companion.NotSupportedError: DOMExceptionName

The operation is not supported

Link copied to clipboard
val DOMExceptionName.Companion.OperationError: DOMExceptionName

The operation failed for an operation-specific reason

Link copied to clipboard
val DOMExceptionName.Companion.QuotaExceededError: DOMExceptionName

The quota has been exceeded

Link copied to clipboard
val DOMExceptionName.Companion.ReadOnlyError: DOMExceptionName

The mutating operation was attempted in a "readonly" transaction

Link copied to clipboard
val DOMExceptionName.Companion.SecurityError: DOMExceptionName

The operation is insecure

Link copied to clipboard
val DOMExceptionName.Companion.SyntaxError: DOMExceptionName

The string did not match the expected pattern

Link copied to clipboard
val DOMExceptionName.Companion.TimeoutError: DOMExceptionName

The operation timed out

Link copied to clipboard
val DOMExceptionName.Companion.TransactionInactiveError: DOMExceptionName

A request was placed against a transaction that is currently not active or is finished

Link copied to clipboard
val DOMExceptionName.Companion.UnknownError: DOMExceptionName

The operation failed for an unknown transient reason (e.g., out of memory)

Link copied to clipboard
val DOMExceptionName.Companion.URLMismatchError: DOMExceptionName

The given URL does not match another URL

Link copied to clipboard
val DOMExceptionName.Companion.VersionError: DOMExceptionName

An attempt was made to open a database using a lower version than the existing version

Link copied to clipboard
val DOMExceptionName.Companion.WrongDocumentError: DOMExceptionName

The object is in the wrong Document

Functions

Link copied to clipboard
Link copied to clipboard
external fun reportError(error: JsError)