Click or drag to resize

IJsPromiseCatch Method (FuncObject, Object)

Appends the rejection handler to the promise.

Namespace:  DotNetBrowser.Js
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.24.2
Syntax
C#
IJsPromise Catch(
	Func<Object, Object> onRejected
)

Parameters

onRejected
Type: SystemFuncObject, Object
The rejection handler.

Return Value

Type: IJsPromise
A new IJsPromise resolving to the return value of the called handler, or to its original settled value if the promise was not handled.
Exceptions
ExceptionCondition
JsExceptionThe JavaScript function raised an exception.
ObjectDisposedExceptionThe IJsPromise has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
See Also