다음을 통해 공유


RemoteException.RethrowFromSystemServer Method

Definition

Rethrow this exception when we know it came from the system server.

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

Returns

Attributes

Remarks

Rethrow this exception when we know it came from the system server. This gives us an opportunity to throw a nice clean DeadSystemRuntimeException signal to avoid spamming logs with misleading stack traces.

Apps making calls into the system server 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.rethrowFromSystemServer().

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