PromisesErrorTErr, T Method (IPromiseT, ActionTErr) |
Attach a callback that runs an error (other than a cancellation error) occurs
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IPromise<T> Error<TErr, T>(
this IPromise<T> promise,
Action<TErr> callback
)
where TErr : Exception
<ExtensionAttribute>
Public Shared Function Error(Of TErr As Exception, T) (
promise As IPromise(Of T),
callback As Action(Of TErr)
) As IPromise(Of T)
Parameters
- promise
- Type: Innovator.ClientIPromiseT
- callback
- Type: SystemActionTErr
Type Parameters
- TErr
- T
Return Value
Type:
IPromiseTUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPromiseT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also