v1.16: Add overload methods in Key class that return the API error message
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);
}