Class DrmException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.drm.DrmException
All Implemented Interfaces:
Serializable

public class DrmException extends Exception
Represents an exception that occurred during a DRM operation.
See Also:
  • Field Details

    • ERROR_UNKNOWN

      public static final int ERROR_UNKNOWN
      Error indicating a general error
      See Also:
    • ERROR_IO_ERROR

      public static final int ERROR_IO_ERROR
      Error indicating that an IO error occurred during the license request. This cause of this exception will be an IOException
      See Also:
    • ERROR_PROVISIONING_FAILED

      public static final int ERROR_PROVISIONING_FAILED
      Error indicating that the provisioning request failed.
      See Also:
  • Constructor Details

    • DrmException

      public DrmException(@NonNull String message, int errorCode, Throwable cause)
      Create a new instance with the given message and error errorCode
      Parameters:
      message - the error message
      errorCode - the error code
      cause - the cause
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns the error code of this exception.
      Returns:
      The error code.