-
- All Implemented Interfaces:
-
java.io.Serializable
public class LcpException extends UserException
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLcpException.LicenseInteractionNotAvailableThe interaction is not available with this License.
public classLcpException.LicenseProfileNotSupportedThis License's profile is not supported by liblcp.
public classLcpException.CrlFetchingFailed to retrieve the Certificate Revocation List.
public final classLcpException.NetworkA network request failed with the given exception.
public final classLcpException.RuntimeAn unexpected LCP exception occurred. Please post an issue on r2-lcp-kotlin with the error message and how to reproduce it.
public final classLcpException.UnknownAn unknown low-level exception was reported.
public classLcpException.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 classLcpException.RenewErrors while renewing a loan.
public classLcpException.ReturnErrors while returning a loan.
public classLcpException.ParsingErrors while parsing the License or Status JSON Documents.
public classLcpException.ContainerErrors while reading or writing a LCP container (LCPL, EPUB, LCPDF, etc.)
public classLcpException.LicenseIntegrityAn error occurred while checking the integrity of the License, it can't be retrieved.
public classLcpException.Decryptionpublic classLcpException.Companion
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class org.readium.r2.shared.UserException
getUserMessage -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-