This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

message

Summary

Retrieves a string describing the exception that occurred.

Property of dom/DOMExceptiondom/DOMException

Syntax

Note: This property is read-only.

var exceptionMessage = exception.message;

Return Value

Returns an object of type StringString

A short description of the exception.

Examples

function getExceptionMsg(e) {
//retrieve text for DOMException
var exceptionMsg = e.message;
return exceptionMsg;
}

Related specifications

DOM Level 2 Core
Recommendation

See also

Related pages

Attributions