# NonceLoaderException

# NonceLoaderException


```
class NonceLoaderException : Exception
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [com.google.ads.interactivemedia.pal.NonceLoaderException](https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/NonceLoaderException) |

*** ** * ** ***

An exception that occurred in the NonceLoader class. This exception will generally be passed to a listener rather than thrown. The user should fallback to not using NonceLoader library in case of failure.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/annotation/IntDef.html(value = [https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.EMPTY_NONCE, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.ENCRYPTION_FAILED, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.NONCE_TOO_LONG, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.INVALID_CONTEXT, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.INVALID_NONCE_REQUEST, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.FAILED_TO_LOAD_KEYSET, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.PUBLIC_KEY_FAILED_TO_LOAD, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.CRYPTOGRAPHY_UNAVAILABLE, https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/ErrorCodes.UNKNOWN_ERROR]) @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) annotation https://developers.google.com/ad-manager/pal/android/api/kotlin/com/google/ads/interactivemedia/pal/NonceLoaderException.ErrorCodes` Error codes for NonceLoader exceptions. |

| ### Inherited functions |
|---|
| From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |---|---| | `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/add-suppressed.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!)` | | `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/fill-in-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-cause.html()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-localized-message.html()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!>!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-suppressed.html()` | | `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/init-cause.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!)` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html()` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/set-stack-trace.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!)` | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/to-string.html()` | |