Source code for joule.errors

[docs] class ConfigurationError(Exception): """ Error setting up an object due to incorrect configuration """ pass
[docs] class SubscriptionError(Exception): """ Error subscribing to a stream that is not available """ pass
class ConnectionError(Exception): """ Error connecting to a Joule server """ pass
[docs] class DataError(Exception): """ Error generated by backend storage (nilmdb or timescale) """ pass
[docs] class DecimationError(DataError): """ Requested data is not sufficiently decimated """ pass
[docs] class ApiError(Exception): """ Error generated by an API call. Catches all API related errors. """ pass
[docs] class StreamNotFound(ApiError): """ Type of APIError. Requested stream does not exist """ pass
[docs] class EmptyPipeError(ApiError): """ Type of APIError. Attempt to read from an empty pipe """ pass