---
title: DOMException.message
slug: Web/API/DOMException/message
tags:
  - API
  - DOMException
  - Property
  - Reference
  - message
browser-compat: api.DOMException.message
---
{{ APIRef("DOM") }}

The **`message`** read-only property of the
{{domxref("DOMException")}} interface returns a {{ domxref("DOMString") }} representing
a message or description associated with the given [error name](/en-US/docs/Web/API/DOMException#error_names).

## Syntax

```js
var domExceptionMessage = domExceptionInstance.message;
```

### Value

A {{domxref("DOMString")}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
