Source code for instro.lib.exceptions

"""Instro exception classes."""


[docs] class InstroError(Exception): """Base Instro error."""
[docs] class FeatureNotSupportedError(InstroError): """Unsupported feature error."""
[docs] class InstrumentNotOpenError(InstroError): """Raised when an instrument method is called before open()."""
[docs] class UnknownHolderError(InstroError): """Raised when a transport is closed with an object that never opened it."""