Exception Hierarchy

All SDK exceptions inherit from RulebookError. HTTP errors are further organized by status code so you can catch exactly what you need.

Basic Error Handling

Exception Attributes

Every APIStatusError (and its subclasses) carries the full context of the failed request:

Catching All API Errors

Use the base classes to handle broad categories:

Input Validation

The SDK validates required parameters before making HTTP calls. This raises a standard ValueError, not an SDK exception:

Fee Schedule Results Error Handling

Common Error Scenarios