Summary: [Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException#pubmethods) \| [Inherited Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException#inhmethods)  

# StandardIntegrityException


`
public


class
StandardIntegrityException
`


`


`

`


`

`


`

`

extends `[ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)`


`

`


`

|---|---|---|---|-------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||
| ↳ | [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html) ||
|   |   |   | ↳ | com.google.android.play.core.integrity.StandardIntegrityException |

<br />

*** ** * ** ***

An exception indicating something went wrong with the Standard Integrity API.

See [getErrorCode()](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html#getErrorCode()) for the specific problem.

## Summary

|                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                              ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | ` `[getCause](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html#getCause())`() `                                                                                                                                                                                                                                                        |
| ` int`                                                                           | ` `[getErrorCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html#getErrorCode())`() ` Returns the error code resulting from the operation.                                                                                                                                                                                           |
| ` int`                                                                           | ` `[getStatusCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html#getStatusCode())`() ` Returns the error code resulting from the operation.                                                                                                                                                                                         |
| ` int`                                                                           | ` `[isRemediable](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html#isRemediable())`() ` Returns whether the exception is remediable by the device integrity dialogs. See [IntegrityDialogTypeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogTypeCode.html). |

| ### Inherited methods |
|-----------------------|---|
| From class ` `[com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)` ` |-----------------------------------------------------------------------------------------------------------|------------------------| | ` `[Status](https://developer.google.com/android/reference/com/google/android/gms/common/api/Status.html) | ` getStatus() `        | | ` int`                                                                                                    | ` getStatusCode() `    | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                                | ` getStatusMessage() ` | ||
| From class ` `[java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` ` |----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| | ` final void`                                                                                      | ` addSuppressed(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) `                   | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` fillInStackTrace() `                                                                                                    | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` getCause() `                                                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` getLocalizedMessage() `                                                                                                 | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` getMessage() `                                                                                                          | | ` `[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html) | ` getStackTrace() `                                                                                                       | | ` final `[Throwable[]](https://developer.android.com/reference/java/lang/Throwable.html)           | ` getSuppressed() `                                                                                                       | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` initCause(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) `                       | | ` void`                                                                                            | ` printStackTrace() `                                                                                                     | | ` void`                                                                                            | ` printStackTrace(`[PrintWriter](https://developer.android.com/reference/java/io/PrintWriter.html)` arg0) `               | | ` void`                                                                                            | ` printStackTrace(`[PrintStream](https://developer.android.com/reference/java/io/PrintStream.html)` arg0) `               | | ` void`                                                                                            | ` setStackTrace(`[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html)` arg0) ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` toString() `                                                                                                            | ||
| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public methods

### getCause

```
public Throwable getCause ()
```

<br />

<br />

|                                        Returns                                        ||
|-------------------------------------------------------------------------------|--------|
| [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | <br /> |

### getErrorCode

```
public int getErrorCode ()
```

Returns the error code resulting from the operation. The value is one of the constants in
[StandardIntegrityErrorCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html).

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getStatusCode

```
public int getStatusCode ()
```

Returns the error code resulting from the operation. The value is one of the constants in
[StandardIntegrityErrorCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html). getStatusCode() is not supported in [StandardIntegrityException](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityException.html), please use getErrorCode() instead.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### isRemediable

```
public boolean isRemediable ()
```

Returns whether the exception is remediable by the device integrity dialogs. See [IntegrityDialogTypeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogTypeCode.html).

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |