# RegisterCreationOptionsException

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/RegisterCreationOptionsException.kt+class:androidx.credentials.registry.provider.RegisterCreationOptionsException) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


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

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

|---|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCreationOptionsConfigurationException` | During the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#registerCreationOptions(androidx.credentials.registry.provider.RegisterCreationOptionsRequest)` 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/RegisterCreationOptionsUnknownException` | Thrown when the `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#registerCreationOptions(androidx.credentials.registry.provider.RegisterCreationOptionsRequest)` transaction fails with no more detailed information. |

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/RegisterCreationOptionsException#RegisterCreationOptionsException(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/RegisterCreationOptionsException#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/RegisterCreationOptionsException#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

### RegisterCreationOptionsException

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

```
public RegisterCreationOptionsException(
    @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