> ## 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:throw

> arc:throw を使用して、識別コードとオプションの説明や詳細を伴って、スクリプト内からエラー（例外）を発生させます。

`arc:throw` キーワードを使用して、スクリプト内からエラー（例外）を発生させます。

## パラメータ

* **code**：例外のソースまたは意味を識別するために使用される文字列値。このパラメータは必須です。
* **desc\[ription]**：エラー状況を説明する短いメッセージを指定するオプションのパラメータ。
* **details**：エラーの診断に役立つ追加情報を含むオプションのパラメータ。

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

None

## 例

この例は、エラーコードと説明を明示的に定義します：

```xml theme={null}
<arc:throw code="myerror" desc="thedescription" />
```

## 関連項目

* [arc:try](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-try.md)：例外をキャッチするスコープを定義する。
* [arc:catch](https://docs.arc.cdata.com/26.4/cloud/ja/scripting/keyword-reference/op-arc-catch.md)：スローされた例外をキャッチして例外処理を定義する。


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