IntegrityServiceException

public class IntegrityServiceException extends ApiException


An exception indicating something went wrong with the Integrity API.

See getErrorCode for the specific problem.

Summary

Public constructors

Constructs an IntegrityServiceException with the specified error code.

Public methods

synchronized Throwable
int

Returns the error code resulting from the operation.

int

Returns the error code resulting from the operation.

boolean

Returns whether the exception is remediable by the device integrity dialogs.

Inherited fields

From com.google.android.gms.common.api.ApiException
final Status

This field is deprecated.

Inherited methods

From com.google.android.gms.common.api.ApiException
Status
String

This method is deprecated.

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

Public constructors

IntegrityServiceException

public IntegrityServiceException(int errorCode)

Constructs an IntegrityServiceException with the specified error code.

Parameters
int errorCode

the error code.

Public methods

getCause

synchronized public Throwable getCause()

getErrorCode

public int getErrorCode()

Returns the error code resulting from the operation. The value is one of the constants in IntegrityErrorCode.

getStatusCode

public int getStatusCode()

Returns the error code resulting from the operation. The value is one of the constants in IntegrityErrorCode. getStatusCode() is not supported in IntegrityServiceExceptions, please use getErrorCode() instead.

isRemediable

public boolean isRemediable()

Returns whether the exception is remediable by the device integrity dialogs. See IntegrityDialogTypeCode.

Since 1.5.0