IBatchResultCallback.OnSystemError(Throwable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a system error occurs.
[Android.Runtime.Register("onSystemError", "(Ljava/lang/Throwable;)V", "GetOnSystemError_Ljava_lang_Throwable_Handler:Android.App.AppSearch.IBatchResultCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public virtual void OnSystemError (Java.Lang.Throwable? throwable);
[<Android.Runtime.Register("onSystemError", "(Ljava/lang/Throwable;)V", "GetOnSystemError_Ljava_lang_Throwable_Handler:Android.App.AppSearch.IBatchResultCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnSystemError : Java.Lang.Throwable -> unit
override this.OnSystemError : Java.Lang.Throwable -> unit
Parameters
- throwable
- Throwable
an exception describing the system error
- Attributes
Remarks
Called when a system error occurs.
This method is only called the infrastructure is fundamentally broken or unavailable, such that none of the requests could be started. For example, it will be called if the AppSearch service unexpectedly fails to initialize and can't be recovered by any means, or if communicating to the server over Binder fails (e.g. system service crashed or device is rebooting).
The error is not expected to be recoverable and there is no specific recommended action other than displaying a permanent message to the user.
Normal errors that are caused by invalid inputs or recoverable/retriable situations are reported associated with the input that caused them via the #onResult
method.
Java documentation for android.app.appsearch.BatchResultCallback.onSystemError(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.