stream2py.exceptions#

Custom exception classes for stream2py

This module defines the exception hierarchy for stream2py, providing more specific and informative error messages than generic Python exceptions.

Exceptions

BufferError

Base exception for buffer-related errors

BufferOverflowError

Raised when buffer is full and auto_drop=False

ConfigurationError

Raised when stream2py objects are misconfigured

InvalidDataError

Raised when data doesn't meet expected format or constraints

NoDataAvailableError

Raised when no data is available and ignore_no_item_found=False

Stream2PyError

Base exception for all stream2py errors

StreamAlreadyStoppedError

Raised when operations require a running stream but stream has been stopped

StreamNotStartedError

Raised when operations require a started stream but stream hasn't been started

exception stream2py.exceptions.BufferError[source]#

Bases: Stream2PyError

Base exception for buffer-related errors

exception stream2py.exceptions.BufferOverflowError[source]#

Bases: BufferError

Raised when buffer is full and auto_drop=False

exception stream2py.exceptions.ConfigurationError[source]#

Bases: Stream2PyError

Raised when stream2py objects are misconfigured

exception stream2py.exceptions.InvalidDataError[source]#

Bases: Stream2PyError

Raised when data doesn’t meet expected format or constraints

exception stream2py.exceptions.NoDataAvailableError[source]#

Bases: BufferError

Raised when no data is available and ignore_no_item_found=False

exception stream2py.exceptions.Stream2PyError[source]#

Bases: Exception

Base exception for all stream2py errors

exception stream2py.exceptions.StreamAlreadyStoppedError[source]#

Bases: Stream2PyError

Raised when operations require a running stream but stream has been stopped

exception stream2py.exceptions.StreamNotStartedError[source]#

Bases: Stream2PyError

Raised when operations require a started stream but stream hasn’t been started