diff --git a/cryptlex/lexfloatclient/lexfloatclient_exception.py b/cryptlex/lexfloatclient/lexfloatclient_exception.py index 391efca..4c15166 100644 --- a/cryptlex/lexfloatclient/lexfloatclient_exception.py +++ b/cryptlex/lexfloatclient/lexfloatclient_exception.py @@ -64,4 +64,20 @@ def get_error_message(code): return 'The server license has been suspended.' if code == LexFloatStatusCodes.LF_E_SERVER_LICENSE_GRACE_PERIOD_OVER: return 'The grace period for server license is over.' + if code == LexFloatStatusCodes.LF_E_SYSTEM_PERMISSION: + return 'Insufficient system permissions.' + if code == LexFloatStatusCodes.LF_E_INVALID_PERMISSION_FLAG: + return 'Invalid permission flag.' + if code == LexFloatStatusCodes.LF_E_OFFLINE_FLOATING_LICENSE_NOT_ALLOWED: + return 'Offline floating license is not allowed for per-instance leasing strategy.' + if code == LexFloatStatusCodes.LF_E_MAX_OFFLINE_LEASE_DURATION_EXCEEDED: + return 'Maximum offline lease duration exceeded.' + if code == LexFloatStatusCodes.LF_E_ALLOWED_OFFLINE_FLOATING_CLIENTS_LIMIT_REACHED: + return 'Allowed offline floating clients limit reached.' + if code == LexFloatStatusCodes.LF_E_WMIC: + return "Fingerprint couldn't be generated because Windows Management Instrumentation (WMI) service has been disabled. This error is specific to Windows only." + if code == LexFloatStatusCodes.LF_E_MACHINE_FINGERPRINT: + return 'Machine fingerprint has changed since activation.' + if code == LexFloatStatusCodes.LF_E_PROXY_NOT_TRUSTED: + return 'Request blocked due to untrusted proxy.' return 'Unknown error!' diff --git a/cryptlex/lexfloatclient/lexfloatstatus_codes.py b/cryptlex/lexfloatclient/lexfloatstatus_codes.py index d8bacad..2418b0a 100644 --- a/cryptlex/lexfloatclient/lexfloatstatus_codes.py +++ b/cryptlex/lexfloatclient/lexfloatstatus_codes.py @@ -39,10 +39,26 @@ class LexFloatStatusCodes: LF_E_METER_ATTRIBUTE_USES_LIMIT_REACHED = 56 LF_E_PRODUCT_VERSION_NOT_LINKED = 57 - + LF_E_FEATURE_FLAG_NOT_FOUND = 58 - + + LF_E_SYSTEM_PERMISSION = 59 + LF_E_IP = 60 + + LF_E_INVALID_PERMISSION_FLAG = 61 + + LF_E_OFFLINE_FLOATING_LICENSE_NOT_ALLOWED = 62 + + LF_E_MAX_OFFLINE_LEASE_DURATION_EXCEEDED = 63 + + LF_E_ALLOWED_OFFLINE_FLOATING_CLIENTS_LIMIT_REACHED = 64 + + LF_E_WMIC = 65 + + LF_E_MACHINE_FINGERPRINT = 66 + + LF_E_PROXY_NOT_TRUSTED = 67 LF_E_CLIENT = 70