ekglib

exceptions

Common exception types and error utilities shared across ekglib.

Centralizing these exceptions helps keep error handling consistent between components.

Exception Classes

Base Exception

Specific Exceptions

Usage

from ekglib.exceptions import Error, CannotCapture, PagingNotSupported

# Raise custom exceptions
if not can_capture:
    raise CannotCapture("Unable to capture data from source")

# Catch ekglib exceptions
try:
    # some operation
    pass
except Error as e:
    print(f"ekglib error: {e}")