Package 

Class LcpError

  • All Implemented Interfaces:
    org.readium.r2.shared.util.Error

    
    public class LcpError
     implements Error
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class LcpError.LicenseInteractionNotAvailable

      The interaction is not available with this License.

      public class LcpError.LicenseProfileNotSupported

      This License's profile is not supported by liblcp.

      public class LcpError.CrlFetching

      Failed to retrieve the Certificate Revocation List.

      public final class LcpError.Network

      A network request failed with the given exception.

      public final class LcpError.Runtime

      An unexpected LCP exception occurred. Please post an issue on r2-lcp-kotlin with the error message and how to reproduce it.

      public final class LcpError.Unknown

      An unknown low-level exception was reported.

      public class LcpError.LicenseStatus

      Errors while checking the status of the License, using the Status Document.

      The app should notify the user and stop there. The message to the user must be clear about the status of the license: don't display "expired" if the status is "revoked". The date and time corresponding to the new status should be displayed (e.g. "The license expired on 01 January 2018").

      public class LcpError.Renew

      Errors while renewing a loan.

      public class LcpError.Return

      Errors while returning a loan.

      public class LcpError.Parsing

      Errors while parsing the License or Status JSON Documents.

      public class LcpError.Container

      Errors while reading or writing a LCP container (LCPL, EPUB, LCPDF, etc.)

      public class LcpError.LicenseIntegrity

      An error occurred while checking the integrity of the License, it can't be retrieved.

      public class LcpError.Decryption
      public class LcpError.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String message
      private final Error cause
    • Method Summary

      Modifier and Type Method Description
      String getMessage()
      Error getCause()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait