Package com.castlabs.android.drm
Class DrmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.drm.DrmTodayException
com.castlabs.android.drm.DrmException
- All Implemented Interfaces:
Serializable
Represents an exception that occurred during a DRM operation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.castlabs.android.drm.DrmTodayException
DrmTodayException.ErrorCode
-
Field Summary
Fields inherited from class com.castlabs.android.drm.DrmTodayException
ERROR_DEVICE_TIME, ERROR_INVALID_REQUEST, ERROR_IO_ERROR, ERROR_KEY_NOT_FOUND, ERROR_NOT_AUTHORIZED, ERROR_PROVISIONING_FAILED, ERROR_TOO_MANY_CONCURRENT_SESSIONS, ERROR_UNKNOWN, ERROR_WIDEVINE_DEV_CERTIFICATE_REVOKED
-
Constructor Summary
ConstructorsConstructorDescriptionDrmException
(String message, int errorCode) Create a new instance with the given message and error errorCodeDrmException
(String message, int errorCode, String customMessage) Create a new instance with the given message and error errorCodeDrmException
(String message, int errorCode, Throwable cause) Create a new instance with the given message and error errorCode -
Method Summary
Modifier and TypeMethodDescriptionstatic DrmException
create
(DrmUtils.HttpExecutorException httpException) Creates a DrmException from a DrmUtils.HttpExecutorException.Methods inherited from class com.castlabs.android.drm.DrmTodayException
getCustomCode, getCustomMessage, getErrorCode, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DrmException
Create a new instance with the given message and error errorCode- Parameters:
message
- the error messageerrorCode
- the error errorCode
-
DrmException
Create a new instance with the given message and error errorCode- Parameters:
message
- the error messageerrorCode
- the error errorCodecustomMessage
- the custom message
-
DrmException
Create a new instance with the given message and error errorCode- Parameters:
message
- the error messageerrorCode
- the error errorCodecause
- the cause
-
-
Method Details
-
create
Creates a DrmException from a DrmUtils.HttpExecutorException.- Parameters:
httpException
- The HttpExecutorException to convert.- Returns:
- A new DrmException.
-