Skip to content

Commit

Permalink
Merge pull request #26 from cryptlex/feat/error-code
Browse files Browse the repository at this point in the history
feat: added os user error code
  • Loading branch information
adnan-kamili authored Nov 8, 2023
2 parents 216622e + a98bc2a commit dcb7566
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cryptlex.LexActivator/LexActivatorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ public static string GetErrorMessage(int code)
case LexStatusCodes.LA_E_USERS_LIMIT_REACHED:
return "The allowed users for this account has reached its limit.";

case LexStatusCodes.LA_E_OS_USER:
return "OS user has changed since activation and the license is user-locked.";

default:
return "Unknown error!";

Expand Down
6 changes: 6 additions & 0 deletions src/Cryptlex.LexActivator/LexStatusCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,5 +495,11 @@ activation has been disallowed in the container.
*/
public const int LA_E_USERS_LIMIT_REACHED = 103;

/*
CODE: LA_E_OS_USER
MESSAGE: OS user has changed since activation and the license is user-locked.
*/
public const int LA_E_OS_USER = 104;
}
}

0 comments on commit dcb7566

Please sign in to comment.