Package com.castlabs.android.drm
Class CastlabsMediaDrm.CastlabsMediaDrmException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.drm.CastlabsMediaDrm.CastlabsMediaDrmException
- All Implemented Interfaces:
Serializable
- Enclosing class:
CastlabsMediaDrm
Exception thrown when operations on the MediaDrm instance fail.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Defines the types of DRM exceptions that can occur. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates that opening a DRM session failed.final int
The type of the exception, indicating the specific error that occurred. -
Constructor Summary
ConstructorsConstructorDescriptionCastlabsMediaDrmException
(int type, Throwable cause) Constructs a new CastlabsMediaDrmException with the specified type and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
OPEN_SESSION_FAILED
public static final int OPEN_SESSION_FAILEDIndicates that opening a DRM session failed.- See Also:
-
type
public final int typeThe type of the exception, indicating the specific error that occurred.
-
-
Constructor Details
-
CastlabsMediaDrmException
Constructs a new CastlabsMediaDrmException with the specified type and cause.- Parameters:
type
- The type of the exceptioncause
- The cause of the exception, or null if none
-