Class DrmException

All Implemented Interfaces:
Serializable

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

    • DrmException

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

      public DrmException(@NonNull String message, int errorCode, @Nullable String customMessage)
      Create a new instance with the given message and error errorCode
      Parameters:
      message - the error message
      errorCode - the error errorCode
      customMessage - the custom message
    • 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 errorCode
      cause - the cause
  • Method Details

    • create

      @NonNull public static DrmException create(@NonNull DrmUtils.HttpExecutorException httpException)
      Creates a DrmException from a DrmUtils.HttpExecutorException.
      Parameters:
      httpException - The HttpExecutorException to convert.
      Returns:
      A new DrmException.