SubscribeComplete¶
-
virtual PSubscription ICommandSequence::SubscribeComplete(CommandSequenceCompleteHandler handler) = 0¶
Subscribes a callback to be called when execution of the command sequence is finished, i.e. when the command sequence is in either
ECommandState::Completed
orECommandState::Failed
.- Parameters
handler – Function to be called when command sequence execution is finished.
- Returns
PSubscription – An ISubscription for the callback.
- Throws
CInvalidArgumentException
– Empty callback handler specified.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CIncompatibleException
– Incompatible firmware version loaded.CObjectDestroyedException
– Object is destroyed.