Liking cljdoc? Tell your friends :D

dom.DOMException

The DOMException interface represents an abnormal event (called exception) which occurs as a result of calling a method or accessing property of a web API.

The DOMException interface represents an abnormal event (called
exception) which occurs as a result of calling a method or accessing
property of a web API.
raw docstring

codecljs

(code this)

Property.

The code read-only property of the dom.DOMException interface a short that contains one of the error code constants, or 0 if match. This field is used for historical reasons. New DOM exceptions use this anymore: they put this info in the dom.DOMException.name

var domExceptionCode = domExceptionInstance.code;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code

Property.

The code read-only property of the `dom.DOMException` interface
a short that contains one of the error code constants, or 0 if
match. This field is used for historical reasons. New DOM exceptions
use this anymore: they put this info in the `dom.DOMException.name`

`var domExceptionCode = domExceptionInstance.code;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code`
sourceraw docstring

constructorcljs

Constructor.

The DOMException() constructor returns a DOMException object with a specified message and name.

message Optional A description of the exception. If not present, the empty string '' is used. name Optional Returns a dom.DOMString that contains one of the strings associated with an error constant.

Return value

dom.DOMException A newly created dom.DOMException object.

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException

Constructor.

The DOMException() constructor returns a DOMException object with a specified message and name.

message Optional
A description of the exception. If not present, the empty string '' is used.
name Optional
Returns a `dom.DOMString` that contains one of the strings associated with an error constant.

Return value

`dom.DOMException`
A newly created `dom.DOMException` object.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException`
sourceraw docstring

messagecljs

(message this)

Property.

The message read-only property of the dom.DOMException interface a dom.DOMString representing a message or description associated the given error name.

var domExceptionMessage = domExceptionInstance.message;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message

Property.

The message read-only property of the `dom.DOMException` interface
a `dom.DOMString` representing a message or description associated
the given error name.

`var domExceptionMessage = domExceptionInstance.message;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message`
sourceraw docstring

namecljs

(name this)

Property.

The name read-only property of the dom.DOMException interface a dom.DOMString that contains one of the strings associated an error name.

var domExceptionName = domExceptionInstance.name;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name

Property.

The name read-only property of the `dom.DOMException` interface
a `dom.DOMString` that contains one of the strings associated
an error name.

`var domExceptionName = domExceptionInstance.name;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name`
sourceraw docstring

set-code!cljs

(set-code! this val)

Property.

The code read-only property of the dom.DOMException interface a short that contains one of the error code constants, or 0 if match. This field is used for historical reasons. New DOM exceptions use this anymore: they put this info in the dom.DOMException.name

var domExceptionCode = domExceptionInstance.code;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code

Property.

The code read-only property of the `dom.DOMException` interface
a short that contains one of the error code constants, or 0 if
match. This field is used for historical reasons. New DOM exceptions
use this anymore: they put this info in the `dom.DOMException.name`

`var domExceptionCode = domExceptionInstance.code;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code`
sourceraw docstring

set-message!cljs

(set-message! this val)

Property.

The message read-only property of the dom.DOMException interface a dom.DOMString representing a message or description associated the given error name.

var domExceptionMessage = domExceptionInstance.message;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message

Property.

The message read-only property of the `dom.DOMException` interface
a `dom.DOMString` representing a message or description associated
the given error name.

`var domExceptionMessage = domExceptionInstance.message;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message`
sourceraw docstring

set-name!cljs

(set-name! this val)

Property.

The name read-only property of the dom.DOMException interface a dom.DOMString that contains one of the strings associated an error name.

var domExceptionName = domExceptionInstance.name;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name

Property.

The name read-only property of the `dom.DOMException` interface
a `dom.DOMString` that contains one of the strings associated
an error name.

`var domExceptionName = domExceptionInstance.name;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close