Click or drag to resize

ListAPIRegisterErrorEventCallback Method

Register a callback function that is called when an error event occurs.

Namespace: RAYLASE.SPICE3.ClientLib
Assembly: RAYLASE.SPICE3.ClientLib (in RAYLASE.SPICE3.ClientLib.dll) Version: 3.12.1
Syntax
C#
public void RegisterErrorEventCallback(
	Action<ClientAPI, int, Exception> action
)

Parameters

action  ActionClientAPI, Int32, Exception
The callback function.
Remarks

Note that the notification thread will be blocked until all callbacks have been executed. If the callback cannot finish fast, then it is strongly recommended running its action asynchronously. Alternatively, you may consider calling WaitForListDone(NullableInt32, NullableInt32), WaitForListIdle(NullableInt32, NullableInt32), or WaitForProgress(NullableInt32, NullableInt32) instead, which all throw an exception if an error event occurs.

The callback receives an (currently unused) errorCode and the exception that occurred as parameters.

See Also