# GetPublicKeyCredentialDomException

Artifact: [androidx.credentials:credentials](https://developer.android.com/jetpack/androidx/releases/credentials) [View Source](https://cs.android.com/search?q=file:androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException.kt+class:androidx.credentials.exceptions.publickeycredential.GetPublicKeyCredentialDomException) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

*** ** * ** ***

<br />

```
class GetPublicKeyCredentialDomException : GetPublicKeyCredentialException
```

<br />

|---|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||||
|   |   | ↳ | [androidx.credentials.exceptions.GetCredentialException](https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/GetCredentialException) |||
|   |   |   | ↳ | [androidx.credentials.exceptions.publickeycredential.GetPublicKeyCredentialException](https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialException) ||
|   |   |   |   | ↳ | [androidx.credentials.exceptions.publickeycredential.GetPublicKeyCredentialDomException](https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException) |

*** ** * ** ***

During the get-passkey flow, this is thrown when a DOM Exception is thrown, indicating the operation contains a DOMException error type. The fido spec can be found [here](https://webidl.spec.whatwg.org/#idl-DOMException-error-names). The full list of implemented DOMErrors extends from and can be seen at `https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/domerrors/DomError`.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException#domError()` is null |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException#GetPublicKeyCredentialDomException(androidx.credentials.exceptions.domerrors.DomError,kotlin.CharSequence)( domError: https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/domerrors/DomError, errorMessage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html? )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/domerrors/DomError` | `https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialDomException#domError()` the specific error from the DOMException types defined in the fido spec found [here](https://webidl.spec.whatwg.org/#idl-DOMException-error-names) |

### Inherited functions

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html(s: https://developer.android.com/reference/java/io/PrintStream.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html(s: https://developer.android.com/reference/java/io/PrintWriter.html)`

### Inherited properties

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/localized-message.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/stack-trace.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/suppressed.html`

## Public constructors

### GetPublicKeyCredentialDomException

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

```
GetPublicKeyCredentialDomException(
    domError: DomError,
    errorMessage: CharSequence? = null
)
```

## Public properties

### domError

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

```
val domError: DomError
```

the specific error from the DOMException types defined in the fido spec found [here](https://webidl.spec.whatwg.org/#idl-DOMException-error-names)