-
- 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 classLcpError.LicenseInteractionNotAvailableThe interaction is not available with this License.
public classLcpError.LicenseProfileNotSupportedThis License's profile is not supported by liblcp.
public classLcpError.CrlFetchingFailed to retrieve the Certificate Revocation List.
public final classLcpError.NetworkA network request failed with the given exception.
public final classLcpError.RuntimeAn unexpected LCP exception occurred. Please post an issue on r2-lcp-kotlin with the error message and how to reproduce it.
public final classLcpError.UnknownAn unknown low-level exception was reported.
public classLcpError.LicenseStatusErrors 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 classLcpError.RenewErrors while renewing a loan.
public classLcpError.ReturnErrors while returning a loan.
public classLcpError.ParsingErrors while parsing the License or Status JSON Documents.
public classLcpError.ContainerErrors while reading or writing a LCP container (LCPL, EPUB, LCPDF, etc.)
public classLcpError.LicenseIntegrityAn error occurred while checking the integrity of the License, it can't be retrieved.
public classLcpError.Decryptionpublic classLcpError.Companion
-
Method Summary
Modifier and Type Method Description StringgetMessage()ErrorgetCause()-
-
Method Detail
-
getMessage
String getMessage()
-
getCause
Error getCause()
-
-
-
-