Stay organized with collections
Save and categorize content based on your preferences.
DeniedByServerException
class DeniedByServerException : MediaDrmException
Exception thrown when the provisioning server or key server denies a certficate or license for a device.
Summary
Public constructors
DeniedByServerException
DeniedByServerException(detailMessage: String!)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DeniedByServerException\n\nAdded in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDeniedByServerException\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/DeniedByServerException \"View this page in Java\") \n\n```\nclass DeniedByServerException : MediaDrmException\n```\n\n|---|---|---|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) |||\n| | | ↳ | [android.media.MediaDrmException](/reference/kotlin/android/media/MediaDrmException) ||\n| | | | ↳ | [android.media.DeniedByServerException](#) |\n\nException thrown when the provisioning server or key server denies a certficate or license for a device.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DeniedByServerException](#DeniedByServerException(kotlin.String))`(`detailMessage:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\n| Inherited functions ||\n|---|---|\n| From class [MediaDrmException](/reference/kotlin/android/media/MediaDrmException) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getErrorContext](/reference/kotlin/android/media/MediaDrmException#getErrorContext())`()` \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getOemError](/reference/kotlin/android/media/MediaDrmException#getOemError())`()` \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getVendorError](/reference/kotlin/android/media/MediaDrmException#getVendorError())`()` \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### DeniedByServerException\n\nAdded in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDeniedByServerException(detailMessage: String!)\n```"]]