Skip to content

v1.16: Add overload methods in Key class that return the API error message

Choose a tag to compare

@artemlos artemlos released this 12 Sep 12:48
· 49 commits to master since this release

In this release we have added an additional overload to Key.Activate that accepts the APIError object. This allows you to obtain the error message that was returned by the Web API.

APIError error = new APIError();
LicenseKey license = Key.Activate(auth, RSAPubKey, new ActivateModel(3349, "ICVLD-VVSZR-ZTICT-YKGXL", Helpers.GetMachineCode()), error);

if (license == null) {
    System.out.println("Error: " + error.message);
}