public class ContentProtectionException extends THEOplayerException
Constructor and Description |
---|
ContentProtectionException(ErrorCode code,
String message,
String url,
int status,
String statusText,
String response,
int systemCode)
Constructs a content-protection exception that can be thrown by the player.
|
ContentProtectionException(ErrorCode code,
String message,
Throwable cause,
String url,
int status,
String statusText,
String response,
int systemCode)
Constructs a content-protection exception that can be thrown by the player.
|
Modifier and Type | Method and Description |
---|---|
String |
getResponse()
A textual representation of the body of the HTTP response.
|
int |
getStatus()
The status code from the HTTP response.
|
String |
getStatusText()
A textual description regarding the status from the HTTP response.
|
String |
getUrl()
The URL that was used in the request.
|
getCategory, getCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ContentProtectionException(ErrorCode code, String message, String url, int status, String statusText, String response, int systemCode)
code
- The ErrorCode
of the exception. (NonNull)message
- A textual description of the exception. (NonNull)url
- The URL that was used in the request. (Nullable)status
- The status code.statusText
- A textual description regarding the status. (Nullable)response
- A textual description of the response. (Nullable)systemCode
- The internal error code from the CDM.public ContentProtectionException(ErrorCode code, String message, Throwable cause, String url, int status, String statusText, String response, int systemCode)
code
- The ErrorCode
of the exception. (NonNull)message
- A textual description of the exception. (NonNull)cause
- The cause of the exception. (Nullable)url
- The URL that was used in the request. (Nullable)status
- The status code.statusText
- A textual description regarding the status. (Nullable)response
- A textual description of the response. (Nullable)systemCode
- The internal error code from the CDM.public String getUrl()
- Only available whenTHEOplayerException.getCode()
isErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR
orErrorCode.CONTENT_PROTECTION_LICENSE_ERROR
.
public int getStatus()
- Only available whenTHEOplayerException.getCode()
isErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR
orErrorCode.CONTENT_PROTECTION_LICENSE_ERROR
.
public String getStatusText()
- Only available whenTHEOplayerException.getCode()
isErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR
orErrorCode.CONTENT_PROTECTION_LICENSE_ERROR
.
public String getResponse()
- Only available whenTHEOplayerException.getCode()
isErrorCode.CONTENT_PROTECTION_CERTIFICATE_ERROR
orErrorCode.CONTENT_PROTECTION_LICENSE_ERROR
.