ICompletionHandler.Failed(Throwable, Object) Method

Definition

Invoked when an operation fails.

[Android.Runtime.Register("failed", "(Ljava/lang/Throwable;Ljava/lang/Object;)V", "GetFailed_Ljava_lang_Throwable_Ljava_lang_Object_Handler:Java.Nio.Channels.ICompletionHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public void Failed (Java.Lang.Throwable? exc, Java.Lang.Object? attachment);
[<Android.Runtime.Register("failed", "(Ljava/lang/Throwable;Ljava/lang/Object;)V", "GetFailed_Ljava_lang_Throwable_Ljava_lang_Object_Handler:Java.Nio.Channels.ICompletionHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Failed : Java.Lang.Throwable * Java.Lang.Object -> unit

Parameters

exc
Throwable

The exception to indicate why the I/O operation failed

attachment
Object

The object attached to the I/O operation when it was initiated.

Attributes

Remarks

Invoked when an operation fails.

Java documentation for java.nio.channels.CompletionHandler.failed(java.lang.Throwable, A).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to