Share via


Flow.ISubscriber.OnError(Throwable) Method

Definition

Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription.

[Android.Runtime.Register("onError", "(Ljava/lang/Throwable;)V", "GetOnError_Ljava_lang_Throwable_Handler:Java.Util.Concurrent.Flow/ISubscriberInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnError (Java.Lang.Throwable? throwable);
[<Android.Runtime.Register("onError", "(Ljava/lang/Throwable;)V", "GetOnError_Ljava_lang_Throwable_Handler:Java.Util.Concurrent.Flow/ISubscriberInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnError : Java.Lang.Throwable -> unit

Parameters

throwable
Throwable

the exception

Attributes

Remarks

Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. If this method itself throws an exception, resulting behavior is undefined.

Java documentation for java.util.concurrent.Flow.Subscriber.onError(java.lang.Throwable).

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