Error Types

The SDK provides specific error types for different failure scenarios:

gotype APIError struct {
    Code    int
    Message string
}

type ValidationError struct {
    Field   string
    Message string
}

type TransactionError struct {
    TxHash string
    Reason string
}

type RateLimitError struct {
    RetryAfter int // seconds
}

Error Handling Pattern

Last updated