Error Handling
Handle API errors with typed exceptions and built-in retry logic in the Platform SDK.
Error Types
import { errors } from '@amigo-ai/platform-sdk'
// Available error classes:
errors.AmigoError // Base error class, all SDK errors extend this
errors.AuthenticationError // 401, invalid or expired API key
errors.NotFoundError // 404, resource does not exist
errors.BadRequestError // 400, invalid request format or parameters
errors.ValidationError // 422, request validation failed
errors.ConflictError // 409, resource conflict (for example, duplicate name)
errors.NetworkError // Connection issues, timeoutsProperty
Type
Description
Basic Error Handling
Common Error Scenarios
Authentication Errors
Not Found Errors
Conflict Errors
Validation Errors
Built-in Retry Logic
Error Type
Retry Strategy
Best Practices
Next Steps
Last updated
Was this helpful?

