Skip to Content
While25SDK docs
Reference

Errors

What an exception does to a module, and the While25Error codes.

An exception in a handler halts that module and leaves its siblings running. It is not swallowed and the loop is not resumed: a module that kept going after an error could trade on bad state.

While25Error carries .code (the refusal code the tables above name) and .message; a TIMEOUT from an order call carries .idempotency_key too. SubscriptionError (.keys) and OrderRightsError (.kind) are While25Errors. A refusal the SDK can judge itself is a plain ValueError, raised before anything is sent.