Back to Exoplayer

DrmSession.DrmSessionException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/DrmSession.DrmSessionException.html

latest3.1 KB
Original Source

Package com.google.android.exoplayer2.drm

Class DrmSession.DrmSessionException


public static classDrmSession.DrmSessionExceptionextends[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Wraps the throwable which is the cause of the error state. See Also:Serialized Form

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | @com.google.android.exoplayer2.PlaybackException.ErrorCode int | errorCode | The PlaybackException.ErrorCode that corresponds to the failure. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DrmSessionException​(Throwable cause, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode) | |

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

[@ErrorCode](../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")public final @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode

The PlaybackException.ErrorCode that corresponds to the failure.

Constructor Detail

- 

DrmSessionException

public DrmSessionException​([Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,[@ErrorCode](../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode)