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.4.1
Syntax
C#
public void RegisterErrorEventCallback(
	Action<ClientAPI, int, Exception> action
)

Parameters

action  ActionClientAPI, Int32, Exception
The callback function.
Remarks
Note that this callback runs inside the clientLib context and can block the computation of other tasks. 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