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

# `.call()` が例外を送出しないのはなぜですか？

デフォルトでは、Weave の [`.call()`](/ja/weave/guides/tracking/tracing#creating-calls) メソッドは例外を取得し、送出する代わりに `call.exception` に保存します。これは想定どおりの動作です。

実行中に例外を送出する必要がある場合は、`__should_raise` パラメーターを設定してください。

```python theme={null}
result, call = my_op.call(__should_raise=True)
```

`__should_raise=True` を設定しない場合、Weave は op の実行中に発生した例外をすべて表に出さずに取得して保存するため、エラーを調べるには `call.exception` を確認する必要があります。

```python theme={null}
result, call = my_op.call()
if call.exception:
    print(f"Op failed with: {call.exception}")
```

詳細は、[制限と想定される動作](/ja/weave/details/limits)を参照してください。

***

<Badge stroke shape="pill" color="orange" size="md">[トレースデータ](/ja/support/weave/tags/trace-data)</Badge>
