Subscribe¶
-
virtual PSubscription IEventResponse::Subscribe(EventResponseHandler handler) = 0¶
Subscribes a callback to be executed when this response is triggered.
- Parameters
handler – Function to be called.
- Returns
PSubscription – An ISubscription for the callback.
- Throws
CInvalidArgumentException– Empty callback handler specified.COutOfResourcesException– No resources available to subscribe callback.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 (only applicable if entity is a controller).