Package com.castlabs.android.drm
Class DrmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.drm.DrmException
- All Implemented Interfaces:
Serializable
Represents an exception that occurred during a DRM operation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceAnnotation interface for error codes used in DrmException. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError indicating that an IO error occurred during the license request.static final intError indicating that the provisioning request failed.static final intError indicating a general error -
Constructor Summary
ConstructorsConstructorDescriptionDrmException(String message, int errorCode, Throwable cause) Create a new instance with the given message and error errorCode -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_UNKNOWN
public static final int ERROR_UNKNOWNError indicating a general error- See Also:
-
ERROR_IO_ERROR
public static final int ERROR_IO_ERRORError indicating that an IO error occurred during the license request. This cause of this exception will be anIOException- See Also:
-
ERROR_PROVISIONING_FAILED
public static final int ERROR_PROVISIONING_FAILEDError indicating that the provisioning request failed.- See Also:
-
-
Constructor Details
-
DrmException
Create a new instance with the given message and error errorCode- Parameters:
message- the error messageerrorCode- the error codecause- the cause
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns the error code of this exception.- Returns:
- The error code.
-