# ClearCreationOptionsException

Artifact: [androidx.credentials.registry:registry-provider](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/provider/ClearCreationOptionsException.kt+class:androidx.credentials.registry.provider.ClearCreationOptionsException) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
public abstract class ClearCreationOptionsException 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.credentials.registry.provider.ClearCreationOptionsException](https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsException) |

Known direct subclasses [ClearCreationOptionsConfigurationException](https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsConfigurationException), [ClearCreationOptionsUnknownException](https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsUnknownException)

|---|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsConfigurationException` | During the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#clearCreationOptions(androidx.credentials.registry.provider.ClearCreationOptionsRequest)` transaction, this is thrown when configurations are mismatched for the RegistryManager service, typically indicating the service provider dependency is missing in the manifest or some system service is not enabled. |
| `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsUnknownException` | Thrown when the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#clearCreationOptions(androidx.credentials.registry.provider.ClearCreationOptionsRequest)` transaction fails with no more detailed information. |

*** ** * ** ***

Represents an error thrown during a `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#clearCreationOptions(androidx.credentials.registry.provider.ClearCreationOptionsRequest)` transaction.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsException#ClearCreationOptionsException(kotlin.String,kotlin.CharSequence)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html type, https://developer.android.com/reference/java/lang/CharSequence.html errorMessage )` |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsException#getErrorMessage()()` the error message |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ClearCreationOptionsException#getType()()` the type of the error |

### Inherited methods

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `final void` `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)` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace()()` `https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#getCause()()` `@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
https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()()` `@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()()` `final @https://developer.android.com/reference/androidx/annotation/NonNull Throwable[]` `@https://developer.android.com/reference/androidx/annotation/RecentlyNonNull
https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed()()` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` `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)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()()` `void` `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)` `void` `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)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])(@https://developer.android.com/reference/androidx/annotation/NonNull StackTraceElement[] stackTrace)`

## Public constructors

### ClearCreationOptionsException

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public ClearCreationOptionsException(
    @NonNull String type,
    CharSequence errorMessage
)
```

## Public methods

### getErrorMessage

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final CharSequence getErrorMessage()
```

the error message

### getType

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final @NonNull String getType()
```

the type of the error