> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# arc:finally

> 例外が発生したかどうかにかかわらず、コントロールがarc:call、arc:try、arc:render、またはarc:script 構文を離れた後にスクリプトのクリーンアップセクションを実行します。

`arc:finally` キーワードを使用して、コントロールが[arc:call](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-call.md)、[arc:try](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-try.md)、[arc:render](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-render.md)、または[arc:script](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-script.md) 構文を離れた後にスクリプトのセクションを実行します。これは、生成されたドキュメントのフォーマットをクリーンアップする便利な方法です。

## パラメータ

None

## アトリビュートの制御

None

## 例

`arc:finally` ブロックは、ハンドルされていない例外が発生した場合に実行されます。これによりタグが閉じていることを確認できます：

```xml theme={null}
<table>
<arc:call op="listCustomers" out="customer">
  <arc:first>
    <thead>
        <arc:enum item="customer">
          <td>[_attr]</td>
        </arc:enum>
    </thead>
  </arc:first>
  <tr>
      <arc:enum item="customer">
        <td>[_value]</td>
      </arc:enum>
  </tr>
  <arc:finally>
  </table> <!-- ensure tags are still closed -->
  </arc:finally>
</arc:call>
```

## 関連項目

* [arc:try](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-try.md)：例外をキャッチするスコープを定義する。
* [arc:call](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-call.md)：オペレーションにより返されたアイテムをループする。
* [arc:render](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-render.md)：ArcScript テンプレートをベースにしたドキュメントを作成する。
* [arc:script](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-script.md)：スクリプトブロックを作成する。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.