Click or drag to resize

SafeCallbacksAction Method

Executes an action, intercepting any exceptions that it rises.

Namespace:  KSPDev.ProcessingUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static void Action(
	Action fn
)
Request Example View Source

Parameters

fn
Type: SystemAction
The action to exectue.
Remarks
The exceptions that the callback may rise are logged as errors, but the flow is not get interrupted. Such behavior may be handy when calling cleanup methods or notifying multiple recepients where the failure is not an option.
See Also