1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/locales/zh-TW/common/25-catch.html
2020-02-10 11:31:37 +09:00

37 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/x-red" data-help-name="catch">
<p>捕獲由同一標簽頁上的節點引發的錯誤</p>
<h3>輸出</h3>
<dl class="message-properties">
<dt>error.message <span class="property-type">字符串</span></dt>
<dd>錯誤消息</dd>
<dt>error.source.id <span class="property-type">字符串</span></dt>
<dd>引發錯誤的節點的ID</dd>
<dt>error.source.type <span class="property-type">字符串</span></dt>
<dd>引發錯誤的節點的類型</dd>
<dt>error.source.name <span class="property-type">字符串</span></dt>
<dd>引發錯誤的節點的名稱如果已設置</dd>
</dl>
<h3>詳細</h3>
<p>如果節點在處理消息時抛出錯誤則流程通常會停止該節點可用于捕獲那些錯誤並通過專用流程進行處理</p>
<p>默認情況下該節點將捕獲同一標簽頁上任何節點抛出的錯誤或者它可以針對特定節點或配置爲僅捕獲另一個目標捕獲節點尚未捕獲的錯誤</p>
<p>當錯誤發生時所有匹配的catch節點都會收到錯誤消息</p>
<p>如果在子流程中發送了錯誤則該錯誤將由子流程中的任意捕獲節點處理如果子流程中不存在捕獲節點則那錯誤將被傳播到子流程實例所在的標簽頁</p>
<p>如果消息已經具有<code>error</code><code>error</code><code>_error</code></p>
</script>