qmi.core.exceptions
Exception definitions for the QMI framework.
Exceptions
Raised in top-level application code to exit with an error message. |
|
Raised when an error occurs while processing configuration data. |
|
Raised when a duplicate name is assigned while a unique name is required. |
|
Raised when a read operation can not complete because the end of the input is reached. |
|
Base class for QMI exceptions. |
|
Raised when an interaction with an instrument fails. |
|
Raised when attempting an operation which is not possible in the current state. |
|
Raised when a QMI message can not be delivered to its target. |
|
Raised when an active default context is required while none exists. |
|
Raised when a remote procedure call fails to complete within the maximum duration. |
|
Raised when an error occurs that does not fit in any other category. |
|
Raised when attempting to subscribe to an unavailable signal. |
|
An error occurred while instantiating the QMI_Task. |
|
An error occurred while running the QMI_Task. |
|
Raised to stop a sleeping task which has received a stop request. |
|
Raised when timeout occurs before a requested operation completes. |
|
Raised when an invalid transport descriptor is used. |
|
Raised when an unknown name is used where an assigned name is required. |
|
Raised when an undefined RPC request occurs. |
|
Raised when the library is used in a way that was not intended. |
|
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.