Class ContentProtectionException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ContentProtectionException extends THEOplayerException
A THEOplayer exception that gives an informative description of the content-protection error that occurred.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringurlprivate final Integerstatusprivate final StringstatusTextprivate final Stringresponseprivate final IntegersystemCodeprivate final ErrorCategorycategoryprivate final ErrorCodecodeprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description ContentProtectionException(ErrorCode code, String message, String url, Integer status, String statusText, String response, Integer systemCode)Constructs a content-protection exception that can be thrown by the player. ContentProtectionException(ErrorCode code, String message, Throwable cause, String url, Integer status, String statusText, String response, Integer systemCode)Constructs a content-protection exception that can be thrown by the player.
-
Method Summary
Modifier and Type Method Description final StringgetUrl()The URL that was used in the request. final IntegergetStatus()The status code from the HTTP response. final StringgetStatusText()A textual description regarding the status from the HTTP response. final StringgetResponse()A textual representation of the body of the HTTP response. final IntegergetSystemCode()The internal error code from the CDM. -
Methods inherited from class com.theoplayer.android.api.error.THEOplayerException
getCategory, getCode -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ContentProtectionException
ContentProtectionException(ErrorCode code, String message, String url, Integer status, String statusText, String response, Integer systemCode)
Constructs a content-protection exception that can be thrown by the player.- Parameters:
code- The ErrorCode of the exception.message- A textual description of the exception.url- The URL that was used in the request.status- The status code.statusText- A textual description regarding the status.response- A textual description of the response.systemCode- The internal error code from the CDM.
-
-
Method Detail
-
getUrl
final String getUrl()
The URL that was used in the request.
Only available when code is ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR or ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR.
-
getStatus
final Integer getStatus()
The status code from the HTTP response.
Only available when code is ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR or ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR.
-
getStatusText
final String getStatusText()
A textual description regarding the status from the HTTP response.
Only available when code is ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR or ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR.
-
getResponse
final String getResponse()
A textual representation of the body of the HTTP response.
Only available when code is ErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR or ErrorCode.CONTENT_PROTECTION_LICENSE_ERROR.
-
getSystemCode
final Integer getSystemCode()
The internal error code from the CDM.
Only available when code is ErrorCode.CONTENT_PROTECTION_INTERNAL_ERROR.
-
-
-
-