| 1 | """pywitdb errors.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | |
| 6 | class WitDbError(Exception): |
| 7 | """Base error for pywitdb.""" |
| 8 | |
| 9 | |
| 10 | class BridgeNotAvailableError(WitDbError): |
| 11 | """Bridge backend is not installed or `witdb-bridge` executable is missing.""" |
| 12 | |
| 13 | |
| 14 | class WitDbProtocolError(WitDbError): |
| 15 | """Invalid or unexpected bridge protocol response.""" |
| 16 | |
| 17 | |
| 18 | class WitDbStoreError(WitDbError): |
| 19 | """Store-level failure reported by the engine.""" |
| 20 |