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 起