Skip to main content

Error Handling Guide

The Skribble SDK provides structured error handling with specific error types for different scenarios. This guide explains the error types and how to handle them effectively.

Error Types

Base Error

The base error class that all other SDK errors inherit from:

Authentication Error

Thrown specifically for authentication failures:

API Error

Thrown when the Skribble API returns an error response:

Validation Error

Thrown for input validation failures:

Operation Error (Python Only)

Provides detailed context about operation failures:

Error Handling Best Practices

Complete Error Handling

Common Error Scenarios

Authentication Failures

Invalid Request Data

API Rate Limiting

Error Recovery Strategies

  • Authentication Errors: Re-authenticate or refresh credentials
  • Validation Errors: Fix the invalid data based on the error details
  • API Errors: Handle based on status code (retry for 5xx, fix request for 4xx)
  • Operation Errors: Log details and handle based on the specific operation

API Reference

For detailed API documentation, see:

API Reference

Browse the complete API reference