StandardIntegrityException

public class StandardIntegrityException extends ApiException


例外狀況,指出 Standard Integrity API 發生錯誤。

如要瞭解特定問題,請查看 getErrorCode

摘要

公用建構函式

使用指定的錯誤代碼建構 StandardIntegrityException

公用方法

synchronized Throwable
int

傳回作業產生的錯誤代碼。

int

傳回作業產生的錯誤代碼。

boolean

傳回例外狀況是否可透過裝置完整性對話方塊修正。

繼承欄位

來自 com.google.android.gms.common.api.ApiException
final Status

這個欄位已淘汰。

繼承方法

來自 com.google.android.gms.common.api.ApiException
Status
String

這個方法已淘汰。

來自 java.lang.Throwable
synchronized final void
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String

公用建構函式

StandardIntegrityException

public StandardIntegrityException(int errorCode)

使用指定的錯誤代碼建構 StandardIntegrityException

參數
int errorCode

錯誤代碼。

公用方法

getCause

synchronized public Throwable getCause()

getErrorCode

public int getErrorCode()

可用來傳回作業產生的錯誤代碼。該值是 StandardIntegrityErrorCode 中的其中一個常數。

getStatusCode

public int getStatusCode()

可用來傳回作業產生的錯誤代碼。該值是 StandardIntegrityErrorCode 中的其中一個常數。StandardIntegrityException 不支援 getStatusCode(),請改用 getErrorCode()。

isRemediable

public boolean isRemediable()

傳回例外狀況是否可透過裝置完整性對話方塊修正。詳情請參閱IntegrityDialogTypeCode

自 1.5.0 版起