Skip to main content

Error Hierarchy

All Chipi SDK errors extend a base ChipiError class. Each error type carries specific context to help you handle failures precisely.

Type Guards

isChipiError(error)

Check if an error is any Chipi SDK error:

hasHttpStatus(error)

Check if an error has an HTTP status code. Useful for retry logic and status-specific handling:

Error Patterns by Type

API Errors

Session Errors

Session errors include a .code field for precise handling:

Session Error Codes Reference

Wallet Errors

Auth Errors

Common Pattern: Unified Error Handler

Need help? Join our Telegram Community for support.