domexception

WebJar for domexception

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

domexception
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

domexception
WebJar for domexception
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/jsdom/domexception

Download domexception

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/domexception/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>domexception</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/domexception/
implementation 'org.webjars.npm:domexception:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/domexception/
implementation ("org.webjars.npm:domexception:2.0.1")
'org.webjars.npm:domexception:jar:2.0.1'
<dependency org="org.webjars.npm" name="domexception" rev="2.0.1">
  <artifact name="domexception" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='domexception', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "domexception" % "2.0.1"
[org.webjars.npm/domexception "2.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : webidl-conversions jar [5.0.0,6)

Project Modules

There are no modules declared in this project.

DOMException

This package implements the DOMException class, from web browsers. It exists in service of jsdom and related packages.

Example usage:

const DOMException = require("domexception");

const e1 = new DOMException("Something went wrong", "BadThingsError");
console.assert(e1.name === "BadThingsError");
console.assert(e1.code === 0);

const e2 = new DOMException("Another exciting error message", "NoModificationAllowedError");
console.assert(e2.name === "NoModificationAllowedError");
console.assert(e2.code === 7);

console.assert(DOMException.INUSE_ATTRIBUTE_ERR === 10);

APIs

This package exposes two flavors of the DOMException interface depending on the imported module.

domexception module

This module default-exports the DOMException interface constructor.

domexception/webidl2js-wrapper module

This module exports the DOMException interface wrapper API generated by webidl2js.

org.webjars.npm

Versions

Version
2.0.1
1.0.1
1.0.0