aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/global_objects/error/message
diff options
context:
space:
mode:
authoralattalatta <urty5656@gmail.com>2021-12-13 01:33:16 +0900
committerhochan Lee <hochan049@gmail.com>2021-12-14 01:03:18 +0900
commit70879fc7f55b999a7f5591415c356ca9f0c2cca6 (patch)
tree865d809ef50214ce557ab2ddd2fc3e29c402c6aa /files/ko/web/javascript/reference/global_objects/error/message
parent42e3346531c06a57eb6f53d14e78c1267153c458 (diff)
downloadtranslated-content-70879fc7f55b999a7f5591415c356ca9f0c2cca6.tar.gz
translated-content-70879fc7f55b999a7f5591415c356ca9f0c2cca6.tar.bz2
translated-content-70879fc7f55b999a7f5591415c356ca9f0c2cca6.zip
Convert Error docs to md
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/error/message')
-rw-r--r--files/ko/web/javascript/reference/global_objects/error/message/index.md33
1 files changed, 16 insertions, 17 deletions
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
---
-<div>{{JSRef}}</div>
+{{JSRef}}
-<p><code><strong>message</strong></code> 속성은 사람이 읽을 수 있는 오류의 설명입니다.</p>
+**`message`** 속성은 사람이 읽을 수 있는 오류의 설명입니다.
-<h2 id="Description">설명</h2>
+## 설명
-<p>이 속성은 오류가 있거나 설정된 경우 오류에 대한 간략한 설명을 포함합니다. <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a>는 예외적으로 <code>message</code> 속성을 광범위하게 사용합니다. {{jsxref("Error.prototype.name", "name")}} 속성과 결합된 <code>message</code> 속성은 {{jsxref("Error.prototype.toString()")}} 메서드에서 오류의 문자열 표현을 생성하는 데 사용됩니다.</p>
+이 속성은 오류가 있거나 설정된 경우 오류에 대한 간략한 설명을 포함합니다. [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey)는 예외적으로 `message` 속성을 광범위하게 사용합니다. {{jsxref("Error.prototype.name", "name")}} 속성과 결합된 `message` 속성은 {{jsxref("Error.prototype.toString()")}} 메서드에서 오류의 문자열 표현을 생성하는 데 사용됩니다.
-<p>기본적으로 <code>message</code> 속성은 빈 문자열이지만, {{jsxref("Error/Error", "Error")}} 생성자에 대한 첫 번째 인수로 메시지를 지정하여 인스턴스에 대해 이 동작을 재정의할 수 있습니다.</p>
+기본적으로 `message` 속성은 빈 문자열이지만, {{jsxref("Error/Error", "Error")}} 생성자에 대한 첫 번째 인수로 메시지를 지정하여 인스턴스에 대해 이 동작을 재정의할 수 있습니다.
-<h2 id="Examples">예제</h2>
+## 예제
-<h3 id="Throwing_a_custom_error">사용자 정의 오류 발생시키기</h3>
+### 사용자 정의 오류 발생시키기
-<pre class="brush: js">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;
-</pre>
+```
-<h2 id="Specifications">명세</h2>
+## 명세
{{Specifications}}
-<h2 id="Browser_compatibility">브라우저 호환성</h2>
+## 브라우저 호환성
-<p>{{Compat}}</p>
+{{Compat}}
-<h2 id="See_also">같이 보기</h2>
+## 같이 보기
-<ul>
- <li>{{jsxref("Error.prototype.name")}}</li>
- <li>{{jsxref("Error.prototype.toString()")}}</li>
-</ul>
+- {{jsxref("Error.prototype.name")}}
+- {{jsxref("Error.prototype.toString()")}}