Error Handling
Reference for the typed errors thrown by `@augustdigital/sdk`. Use this to decide which `catch` paths to write and how to recover from each failure class.
Hierarchy
AugustSDKError // base β every SDK error extends this
βββ AugustAuthError // missing / invalid / forbidden key
βββ AugustValidationError // caller-side input failed validation
βββ AugustNetworkError // network or transport-level failure
βββ AugustTimeoutError // request exceeded its deadline
βββ AugustRateLimitError // backend returned 429 (or equivalent)
βββ AugustServerError // backend returned a non-OK statusProperty
Type
Description
Codes
Class
Code
When it fires
Recommended action
Narrowing patterns
Catch broadly, narrow by code
Catch using the type guard
Inspect the original cause
Retry guidance
Class
Safe to retry?
Notes
Serialization for logging
Last updated