SubscribeRootError¶
-
virtual PSubscription IAxisControlBase::SubscribeRootError(EventOccurredHandler handler) = 0¶
Subscribes a callback to be executed for the first event that triggers the Error response (i.e. root error).
- Parameters
handler – Function to be called when the root error occurs.
- 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.