Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Fields](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#lfields) \| [Ctors](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#pubctors) \| [Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#inhmethods)

# WatchFacePushManager.IsActiveException


`
public
static


class
WatchFacePushManager.IsActiveException
`


`


`

`


`

`


`

`

extends RuntimeException


`

`


`

|---|---|---|---|---|
| java.lang.Object |||||
| ↳ | java.lang.Throwable ||||
|   | ↳ | java.lang.Exception |||
|   |   | ↳ | java.lang.RuntimeException ||
|   |   |   | ↳ | com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.IsActiveException |

<br />

*** ** * ** ***

Exception representing an error of the `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager#isWatchFaceActive(java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Boolean,com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.IsActiveException>)` method.

## Summary

| ### Fields ||
|---|---|
| ` public static final int` | `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_FORBIDDEN_ERROR` The caller is not allowed to query the given watch face. |
| ` public static final int` | `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_UNKNOWN_ERROR` Unknown error while querying information about a watch face |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IsActiveException(int)(int errorCode) ` |
| ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IsActiveException(java.lang.Throwable)(Throwable cause) ` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#getErrorCode()() ` |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Throwable ` |---|---| | ` final void` | ` addSuppressed(Throwable arg0) ` | | ` Throwable` | ` fillInStackTrace() ` | | ` Throwable` | ` getCause() ` | | ` String` | ` getLocalizedMessage() ` | | ` String` | ` getMessage() ` | | ` StackTraceElement[]` | ` getStackTrace() ` | | ` final Throwable[]` | ` getSuppressed() ` | | ` Throwable` | ` initCause(Throwable arg0) ` | | ` void` | ` printStackTrace() ` | | ` void` | ` printStackTrace(PrintWriter arg0) ` | | ` void` | ` printStackTrace(PrintStream arg0) ` | | ` void` | ` setStackTrace(StackTraceElement[] arg0) ` | | ` String` | ` toString() ` | ||
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Fields

### IS_ACTIVE_FORBIDDEN_ERROR

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IS_ACTIVE_FORBIDDEN_ERROR
```

The caller is not allowed to query the given watch face.

<br />

### IS_ACTIVE_UNKNOWN_ERROR

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IS_ACTIVE_UNKNOWN_ERROR
```

Unknown error while querying information about a watch face

<br />

## Public constructors

### IsActiveException

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public IsActiveException (int errorCode)
```

<br />

<br />

| Parameters ||
|---|---|
| `errorCode` | `int`: Value is one of the following: - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_UNKNOWN_ERROR` - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_FORBIDDEN_ERROR` |

### IsActiveException

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public IsActiveException (Throwable cause)
```

<br />

<br />

| Parameters ||
|---|---|
| `cause` | `Throwable` <br /> |

## Public methods

### getErrorCode

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getErrorCode ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_UNKNOWN_ERROR` - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.IsActiveException#IS_ACTIVE_FORBIDDEN_ERROR` |