Files
dehumidify_ctrl/code/.venv/lib/python3.12/site-packages/bitstring/exceptions.py
Jonas Zeunert 4309a2d185 Add Code
2024-08-16 21:57:55 +02:00

24 lines
553 B
Python

class Error(Exception):
"""Base class for errors in the bitstring module."""
def __init__(self, *params: object) -> None:
self.msg = params[0] if params else ''
self.params = params[1:]
class ReadError(Error, IndexError):
"""Reading or peeking past the end of a bitstring."""
InterpretError = ValueError
"""Inappropriate interpretation of binary data."""
class ByteAlignError(Error):
"""Whole-byte position or length needed."""
CreationError = ValueError
"""Inappropriate argument during bitstring creation."""