共用方式為


RemoteException.RethrowAsRuntimeException Method

Definition

Rethrow this as an unchecked runtime exception.

[Android.Runtime.Register("rethrowAsRuntimeException", "()Ljava/lang/RuntimeException;", "GetRethrowAsRuntimeExceptionHandler", ApiSince=30)]
public virtual Java.Lang.RuntimeException RethrowAsRuntimeException ();
[<Android.Runtime.Register("rethrowAsRuntimeException", "()Ljava/lang/RuntimeException;", "GetRethrowAsRuntimeExceptionHandler", ApiSince=30)>]
abstract member RethrowAsRuntimeException : unit -> Java.Lang.RuntimeException
override this.RethrowAsRuntimeException : unit -> Java.Lang.RuntimeException

Returns

Attributes

Remarks

Rethrow this as an unchecked runtime exception.

Apps making calls into other processes may end up persisting internal state or making security decisions based on the perceived success or failure of a call, or any default values returned. For this reason, we want to strongly throw when there was trouble with the transaction.

Java documentation for android.os.RemoteException.rethrowAsRuntimeException().

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