Click or drag to resize

IndirectBindingTCatchExceptionTException Method (FuncTException, Boolean)

Catches any exceptions of the specified TException when setting the value of the binding.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public IndirectBinding<T> CatchException<TException>(
	Func<TException, bool> exceptionHandler = null
where TException : Exception


exceptionHandler (Optional)
Type: SystemFuncTException, Boolean
Handler to call when setting the value, regardless of whether an exception occurs. Return true when the exception is handled, false to throw an exception.

Type Parameters

Type of the exception to catch

Return Value

Type: IndirectBindingT
The binding that catches the specified exception.
See Also