# ExportCredentialsException

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

*** ** * ** ***


```
abstract class ExportCredentialsException : Exception
```

<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.providerevents.exception.ExportCredentialsException](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsException) |

Known direct subclasses [ExportCredentialsInvalidJsonException](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsInvalidJsonException), [ExportCredentialsSystemErrorException](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsSystemErrorException), [ExportCredentialsUnknownCallerException](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsUnknownCallerException), [ExportCredentialsUnknownErrorException](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsUnknownErrorException)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsInvalidJsonException` | The credential json cannot be read because it is written in invalid format |
| `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsSystemErrorException` | Used by the system when the request fails to reach the provider |
| `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsUnknownCallerException` | The credential json cannot be trusted because the caller is unknown |
| `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/exception/ExportCredentialsUnknownErrorException` | The credential json cannot be stored due to unknown error |

*** ** * ** ***

Represents an error thrown during an export flow.

## Summary

### 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`