Back to Exoplayer

CryptoException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/decoder/CryptoException.html

latest2.7 KB
Original Source

Package com.google.android.exoplayer2.decoder

Class CryptoException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classCryptoExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Thrown when a non-platform component fails to decrypt data. See Also:Serialized Form

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | int | errorCode | Deprecated.

A component specific error code. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | CryptoException​(int errorCode, String message) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

errorCode

public final int errorCode

Deprecated.

A component specific error code.

Constructor Detail

- 

CryptoException

public CryptoException​(int errorCode,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message)

Deprecated. Parameters:errorCode - A component specific error code.message - The detail message.