aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/console/error
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/console/error
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/console/error')
-rw-r--r--files/ja/web/api/console/error/index.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/files/ja/web/api/console/error/index.html b/files/ja/web/api/console/error/index.html
new file mode 100644
index 0000000000..5655e1e99a
--- /dev/null
+++ b/files/ja/web/api/console/error/index.html
@@ -0,0 +1,77 @@
+---
+title: Console.error()
+slug: Web/API/Console/error
+tags:
+ - API
+ - DOM
+ - Debugging
+ - Method
+ - Web Development
+ - web console
+translation_of: Web/API/Console/error
+---
+<div>{{APIRef("Console API")}}</div>
+
+<p>デバッガの Web コンソールにエラーメッセージを出力します。</p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate">console.error(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
+console.error(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
+console.exception(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
+console.exception(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
+</pre>
+
+<div class="note">
+<p><strong>補足:</strong> <code>console.exception()</code> は、<code>console.error()</code> の別名です。これらは機能的に同じものです。</p>
+</div>
+
+<h3 id="引数">引数</h3>
+
+<dl>
+ <dt><code>obj1</code> ... <code>objN</code></dt>
+ <dd>出力する JavaScript オブジェクトのリスト。 各オブジェクトの文字列表現が記述順で出力されます。</dd>
+ <dt><code>msg</code></dt>
+ <dd>0 個以上の置換文字列 (<span style="color: green;">substitution strings</span>) を含む JavaScript 文字列。</dd>
+ <dt><code>subst1</code> ... <code>substN</code></dt>
+ <dd><code>msg</code> 内の置換文字列を置換するJavaScript オブジェクト。これにより、出力の書式の詳細な制御が可能となります。</dd>
+</dl>
+
+<p>詳細については、{{domxref("console")}} ドキュメント内の <a href="/docs/Web/API/console#Outputting_text_to_the_console">コンソールへのテキスト出力</a> を参照してください。</p>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">策定状況</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("Console API", "#error", "console.error()")}}</td>
+ <td>{{Spec2("Console API")}}</td>
+ <td>最初期の定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2>
+
+<div>
+
+
+<p>{{Compat("api.Console.error")}}</p>
+</div>
+
+<h2 id="関連情報">関連情報</h2>
+
+<ul>
+ <li><a href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li>
+ <li><a href="http://msdn.microsoft.com/library/gg589530">MSDN: Using the F12 Tools Console to View Errors and Status</a></li>
+ <li><a href="https://developers.google.com/chrome-developer-tools/docs/console#errors_and_warnings">Chrome Developer Tools: Using the Console</a></li>
+</ul>