Skip to content

Failed to check license expiry date when license is expired #3

@HengJunXi

Description

@HengJunXi

Currently, to check the license expiry date, we would need to initialise the Regula.DocumentReader first; however, the initialisation will fail when the license is expired. This disallow us from knowing whether the failure is caused by expired license and show appropriate error message. There is a not so reliable way of checking if the error caught in the errorCallback (a string) .includes("invalid date"). Are there any better alternatives like error codes or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions