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.RemoveException#lfields) \| [Ctors](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#pubctors) \| [Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#inhmethods)

# WatchFacePushManager.RemoveException


`
public
static


class
WatchFacePushManager.RemoveException
`


`


`

`


`

`


`

`

extends RuntimeException


`

`


`

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

<br />

*** ** * ** ***

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

## Summary

| ### Fields ||
|---|---|
| ` public static final int` | `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#REMOVE_INVALID_SLOT_ID_ERROR` The watch face slot ID is invalid. |
| ` public static final int` | `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#REMOVE_UNKNOWN_ERROR` Unknown error while removing a watch face. |

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

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#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

### REMOVE_INVALID_SLOT_ID_ERROR

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

```
public static final int REMOVE_INVALID_SLOT_ID_ERROR
```

The watch face slot ID is invalid.

<br />

### REMOVE_UNKNOWN_ERROR

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

```
public static final int REMOVE_UNKNOWN_ERROR
```

Unknown error while removing a watch face.

<br />

## Public constructors

### RemoveException

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

```
public RemoveException (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.RemoveException#REMOVE_UNKNOWN_ERROR` - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#REMOVE_INVALID_SLOT_ID_ERROR` |

### RemoveException

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

```
public RemoveException (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.RemoveException#REMOVE_UNKNOWN_ERROR` - `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager.RemoveException#REMOVE_INVALID_SLOT_ID_ERROR` |