語言

RemoteException.RethrowAsRuntimeException 方法

定義

重新拋出為未勾選的執行時例外。

[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

傳回

回傳的值為非空值。

屬性

備註

重新拋出為未勾選的執行時例外。

呼叫其他程序的應用程式可能會持續存在內部狀態,或根據呼叫的成功或失敗感知,或回傳的預設值來做出安全決策。 因此,我們希望在交易出現問題時強烈拋棄。

Java 文件 android.os.RemoteException.rethrowAsRuntimeException()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於