qmi.core.exceptions

Exception definitions for the QMI framework.

Exceptions

QMI_ApplicationException

Raised in top-level application code to exit with an error message.

QMI_ConfigurationException

Raised when an error occurs while processing configuration data.

QMI_DuplicateNameException

Raised when a duplicate name is assigned while a unique name is required.

QMI_EndOfInputException

Raised when a read operation can not complete because the end of the input is reached.

QMI_Exception

Base class for QMI exceptions.

QMI_InstrumentException

Raised when an interaction with an instrument fails.

QMI_InvalidOperationException

Raised when attempting an operation which is not possible in the current state.

QMI_MessageDeliveryException

Raised when a QMI message can not be delivered to its target.

QMI_NoActiveContextException

Raised when an active default context is required while none exists.

QMI_RpcTimeoutException

Raised when a remote procedure call fails to complete within the maximum duration.

QMI_RuntimeException

Raised when an error occurs that does not fit in any other category.

QMI_SignalSubscriptionException

Raised when attempting to subscribe to an unavailable signal.

QMI_TaskInitException

An error occurred while instantiating the QMI_Task.

QMI_TaskRunException

An error occurred while running the QMI_Task.

QMI_TaskStopException

Raised to stop a sleeping task which has received a stop request.

QMI_TimeoutException

Raised when timeout occurs before a requested operation completes.

QMI_TransportDescriptorException

Raised when an invalid transport descriptor is used.

QMI_UnknownNameException

Raised when an unknown name is used where an assigned name is required.

QMI_UnknownRpcException

Raised when an undefined RPC request occurs.

QMI_UsageException

Raised when the library is used in a way that was not intended.

QMI_WrongThreadException

Raised when a function detects that it is called in a wrong thread.

exception qmi.core.exceptions.QMI_Exception

Base class for QMI exceptions.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_RuntimeException

Raised when an error occurs that does not fit in any other category.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_ApplicationException

Raised in top-level application code to exit with an error message.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_UsageException

Raised when the library is used in a way that was not intended.

Examples

  • Bad data type of argument

  • Invalid order of operations

  • Use without initialization

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_DuplicateNameException

Raised when a duplicate name is assigned while a unique name is required.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_UnknownNameException

Raised when an unknown name is used where an assigned name is required.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_NoActiveContextException

Raised when an active default context is required while none exists.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_InvalidOperationException

Raised when attempting an operation which is not possible in the current state.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_ConfigurationException

Raised when an error occurs while processing configuration data.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_WrongThreadException

Raised when a function detects that it is called in a wrong thread.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_InstrumentException

Raised when an interaction with an instrument fails.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_TimeoutException

Raised when timeout occurs before a requested operation completes.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_EndOfInputException

Raised when a read operation can not complete because the end of the input is reached.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_TransportDescriptorException

Raised when an invalid transport descriptor is used.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_MessageDeliveryException

Raised when a QMI message can not be delivered to its target.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_RpcTimeoutException

Raised when a remote procedure call fails to complete within the maximum duration.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_UnknownRpcException

Raised when an undefined RPC request occurs.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_SignalSubscriptionException

Raised when attempting to subscribe to an unavailable signal.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_TaskInitException

An error occurred while instantiating the QMI_Task.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_TaskRunException

An error occurred while running the QMI_Task.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception qmi.core.exceptions.QMI_TaskStopException

Raised to stop a sleeping task which has received a stop request.

add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.