From 70879fc7f55b999a7f5591415c356ca9f0c2cca6 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Mon, 13 Dec 2021 01:33:16 +0900 Subject: Convert Error docs to md --- .../global_objects/error/message/index.md | 33 +++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects/error/message') diff --git a/files/ko/web/javascript/reference/global_objects/error/message/index.md b/files/ko/web/javascript/reference/global_objects/error/message/index.md index 4d9bb4dff7..9e91b681eb 100644 --- a/files/ko/web/javascript/reference/global_objects/error/message/index.md +++ b/files/ko/web/javascript/reference/global_objects/error/message/index.md @@ -7,36 +7,35 @@ tags: - Prototype browser-compat: javascript.builtins.Error.message --- -
{{JSRef}}
+{{JSRef}} -

message 속성은 사람이 읽을 수 있는 오류의 설명입니다.

+**`message`** 속성은 사람이 읽을 수 있는 오류의 설명입니다. -

설명

+## 설명 -

이 속성은 오류가 있거나 설정된 경우 오류에 대한 간략한 설명을 포함합니다. SpiderMonkey는 예외적으로 message 속성을 광범위하게 사용합니다. {{jsxref("Error.prototype.name", "name")}} 속성과 결합된 message 속성은 {{jsxref("Error.prototype.toString()")}} 메서드에서 오류의 문자열 표현을 생성하는 데 사용됩니다.

+이 속성은 오류가 있거나 설정된 경우 오류에 대한 간략한 설명을 포함합니다. [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey)는 예외적으로 `message` 속성을 광범위하게 사용합니다. {{jsxref("Error.prototype.name", "name")}} 속성과 결합된 `message` 속성은 {{jsxref("Error.prototype.toString()")}} 메서드에서 오류의 문자열 표현을 생성하는 데 사용됩니다. -

기본적으로 message 속성은 빈 문자열이지만, {{jsxref("Error/Error", "Error")}} 생성자에 대한 첫 번째 인수로 메시지를 지정하여 인스턴스에 대해 이 동작을 재정의할 수 있습니다.

+기본적으로 `message` 속성은 빈 문자열이지만, {{jsxref("Error/Error", "Error")}} 생성자에 대한 첫 번째 인수로 메시지를 지정하여 인스턴스에 대해 이 동작을 재정의할 수 있습니다. -

예제

+## 예제 -

사용자 정의 오류 발생시키기

+### 사용자 정의 오류 발생시키기 -
var e = new Error('Could not parse input');
+```js
+var e = new Error('Could not parse input');
 // e.message is 'Could not parse input'
 throw e;
-
+``` -

명세

+## 명세 {{Specifications}} -

브라우저 호환성

+## 브라우저 호환성 -

{{Compat}}

+{{Compat}} -

같이 보기

+## 같이 보기 - +- {{jsxref("Error.prototype.name")}} +- {{jsxref("Error.prototype.toString()")}} -- cgit v1.2.3-54-g00ecf