We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 820f31c + d8a5a2f commit 484894bCopy full SHA for 484894b
1 file changed
docs/usage_guide/error_handling.md
@@ -22,7 +22,7 @@ final agent = await Agent.create(
22
llm: llm,
23
name: 'assistant',
24
role: 'A helpful assistant.',
25
- failureMode: FailureMode.throwException,
+ failureMode: FailureMode.throwError,
26
);
27
```
28
@@ -45,7 +45,7 @@ if (response.isError) {
45
}
46
47
48
-### `FailureMode.throwException`
+### `FailureMode.throwError`
49
50
Exceptions propagate to your code. Use this when you want full control over error handling:
51
@@ -184,7 +184,7 @@ class ResilientService {
184
),
185
name: 'primary',
186
187
188
scope: scope,
189
190
0 commit comments