Skip to content

Commit e82d9f4

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/usage_guide/error_handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Future<DataStore> createDataStore() async {
242242

243243
1. **Use `gracefulMessage` for user-facing agents.** Users don't want to see stack traces. Log errors with `onError` and show friendly messages.
244244

245-
2. **Use `throwException` for backend/service agents.** When you need programmatic control over error recovery.
245+
2. **Use `throwError` for backend/service agents.** When you need programmatic control over error recovery.
246246

247247
3. **Always set `onError`.** Even with graceful mode, you want to know when things go wrong. Connect it to your error tracking (Sentry, Crashlytics, etc.).
248248

0 commit comments

Comments
 (0)