Skip to content

Commit 484894b

Browse files
authored
Merge pull request #26 from ahmadexe/docs/name-fixes-in-error-handling
fix: wrong function name was used in docs, now it is fixed
2 parents 820f31c + d8a5a2f commit 484894b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/usage_guide/error_handling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final agent = await Agent.create(
2222
llm: llm,
2323
name: 'assistant',
2424
role: 'A helpful assistant.',
25-
failureMode: FailureMode.throwException,
25+
failureMode: FailureMode.throwError,
2626
);
2727
```
2828

@@ -45,7 +45,7 @@ if (response.isError) {
4545
}
4646
```
4747

48-
### `FailureMode.throwException`
48+
### `FailureMode.throwError`
4949

5050
Exceptions propagate to your code. Use this when you want full control over error handling:
5151

@@ -184,7 +184,7 @@ class ResilientService {
184184
),
185185
name: 'primary',
186186
role: 'A helpful assistant.',
187-
failureMode: FailureMode.throwException,
187+
failureMode: FailureMode.throwError,
188188
scope: scope,
189189
);
190190

0 commit comments

Comments
 (0)