SubscribeAsynchronousException¶
-
virtual PSubscription ITopController::SubscribeAsynchronousException(AsynchronousExceptionHandler handler, bool includeHistory = false) = 0¶
Registers a callback that is called when asynchronous exceptions occur.
- Parameters
handler – Function to be called when exception occurs outside the callstack of a PMP API call.
includeHistory – Indicates whether callbacks must be generated for exceptions in the past. Default value is false.
- 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.
- Remarks
Execution does not require a subscription resource.