Stay organized with collections
Save and categorize content based on your preferences.
open class MediaCasException : Exception
Base class for MediaCas exceptions
Summary
Nested classes |
|
Exception thrown when the provisioning server or key server denies a license for a device.
|
|
Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not sufficient to allocate, due to client's lower priority.
|
|
Exception thrown when an operation on a MediaCas object is attempted before it's provisioned successfully.
|
|
Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not available, due to being in use.
|
|
Exception thrown when an attempt is made to construct a MediaCas object using a CA_system_id that is not supported by the device
|
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,["# MediaCasException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMediaCasException\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaCasException \"View this page in Java\") \n\n```\nopen class MediaCasException : Exception\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.MediaCasException](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [MediaCasException.DeniedByServerException](/reference/kotlin/android/media/MediaCasException.DeniedByServerException), [MediaCasException.InsufficientResourceException](/reference/kotlin/android/media/MediaCasException.InsufficientResourceException), [MediaCasException.NotProvisionedException](/reference/kotlin/android/media/MediaCasException.NotProvisionedException), [MediaCasException.ResourceBusyException](/reference/kotlin/android/media/MediaCasException.ResourceBusyException), [MediaCasException.UnsupportedCasException](/reference/kotlin/android/media/MediaCasException.UnsupportedCasException) |------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | [MediaCasException.DeniedByServerException](/reference/kotlin/android/media/MediaCasException.DeniedByServerException) | Exception thrown when the provisioning server or key server denies a license for a device. | | [MediaCasException.InsufficientResourceException](/reference/kotlin/android/media/MediaCasException.InsufficientResourceException) | Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not sufficient to allocate, due to client's lower priority. | | [MediaCasException.NotProvisionedException](/reference/kotlin/android/media/MediaCasException.NotProvisionedException) | Exception thrown when an operation on a MediaCas object is attempted before it's provisioned successfully. | | [MediaCasException.ResourceBusyException](/reference/kotlin/android/media/MediaCasException.ResourceBusyException) | Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not available, due to being in use. | | [MediaCasException.UnsupportedCasException](/reference/kotlin/android/media/MediaCasException.UnsupportedCasException) | Exception thrown when an attempt is made to construct a MediaCas object using a CA_system_id that is not supported by the device | |\n\nBase class for MediaCas exceptions\n\nSummary\n-------\n\n| Nested classes ||\n|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [DeniedByServerException](/reference/kotlin/android/media/MediaCasException.DeniedByServerException) Exception thrown when the provisioning server or key server denies a license for a device. |\n| | [InsufficientResourceException](/reference/kotlin/android/media/MediaCasException.InsufficientResourceException) Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not sufficient to allocate, due to client's lower priority. |\n| | [NotProvisionedException](/reference/kotlin/android/media/MediaCasException.NotProvisionedException) Exception thrown when an operation on a MediaCas object is attempted before it's provisioned successfully. |\n| | [ResourceBusyException](/reference/kotlin/android/media/MediaCasException.ResourceBusyException) Exception thrown when an operation on a MediaCas object is attempted and hardware resources are not available, due to being in use. |\n| | [UnsupportedCasException](/reference/kotlin/android/media/MediaCasException.UnsupportedCasException) Exception thrown when an attempt is made to construct a MediaCas object using a CA_system_id that is not supported by the device |"]]