-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.Error
public class LcpError.LicenseStatus extends LcpError
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").
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classLcpError.LicenseStatus.Cancelledpublic final classLcpError.LicenseStatus.Returnedpublic final classLcpError.LicenseStatus.NotStartedpublic final classLcpError.LicenseStatus.Expiredpublic final classLcpError.LicenseStatus.RevokedIf the license has been revoked, the user message should display the number of devices which registered to the server. This count can be calculated from the number of "register" events in the status document. If no event is logged in the status document, no such message should appear (certainly not "The license was registered by 0 devices").
-
Method Summary
Modifier and Type Method Description StringgetMessage()ErrorgetCause()-
-
Method Detail
-
getMessage
String getMessage()
-
getCause
Error getCause()
-
-
-
-