# WatchFaceMetadataClient.ServiceNotBoundException

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/WatchFaceMetadataClient.kt+class:androidx.wear.watchface.client.WatchFaceMetadataClient.ServiceNotBoundException) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***


```
public final class WatchFaceMetadataClient.ServiceNotBoundException extends Exception
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [kotlin.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [androidx.wear.watchface.client.WatchFaceMetadataClient.ServiceNotBoundException](https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceMetadataClient.ServiceNotBoundException) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Exception thrown by `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceControlClient#createWatchFaceControlClient(android.content.Context,kotlin.String)` if the remote service can't be bound.

## Summary

| ### Public constructors |
|---|
| `[ServiceNotBoundException](https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceMetadataClient.ServiceNotBoundException#ServiceNotBoundException())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

### Inherited methods

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `final void` `[addSuppressed](https://developer.android.com/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html exception)`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `[fillInStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/lang/Throwable.html` `[getCause](https://developer.android.com/reference/java/lang/Throwable.html#getCause())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `@https://developer.android.com/reference/androidx/annotation/RecentlyNullable
[getLocalizedMessage](https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/lang/String.html` `[getMessage](https://developer.android.com/reference/java/lang/Throwable.html#getMessage())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
[getStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`final @https://developer.android.com/reference/androidx/annotation/NonNull Throwable[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
[getSuppressed](https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `[initCause](https://developer.android.com/reference/java/lang/Throwable.html#initCause(java.lang.Throwable))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html cause)`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`void` `[printStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace())()`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`void` `[printStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintStream))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/io/PrintStream.html s)`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`void` `[printStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/io/PrintWriter.html s)`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`void` `[setStackTrace](https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[]))(@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[] stackTrace)`

**This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.

## Public constructors

### ServiceNotBoundException

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public [ServiceNotBoundException](https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceMetadataClient.ServiceNotBoundException#ServiceNotBoundException())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff