File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -64,4 +64,20 @@ def get_error_message(code):
64
64
return 'The server license has been suspended.'
65
65
if code == LexFloatStatusCodes .LF_E_SERVER_LICENSE_GRACE_PERIOD_OVER :
66
66
return 'The grace period for server license is over.'
67
+ if code == LexFloatStatusCodes .LF_E_SYSTEM_PERMISSION :
68
+ return 'Insufficient system permissions.'
69
+ if code == LexFloatStatusCodes .LF_E_INVALID_PERMISSION_FLAG :
70
+ return 'Invalid permission flag.'
71
+ if code == LexFloatStatusCodes .LF_E_OFFLINE_FLOATING_LICENSE_NOT_ALLOWED :
72
+ return 'Offline floating license is not allowed for per-instance leasing strategy.'
73
+ if code == LexFloatStatusCodes .LF_E_MAX_OFFLINE_LEASE_DURATION_EXCEEDED :
74
+ return 'Maximum offline lease duration exceeded.'
75
+ if code == LexFloatStatusCodes .LF_E_ALLOWED_OFFLINE_FLOATING_CLIENTS_LIMIT_REACHED :
76
+ return 'Allowed offline floating clients limit reached.'
77
+ if code == LexFloatStatusCodes .LF_E_WMIC :
78
+ return "Fingerprint couldn't be generated because Windows Management Instrumentation (WMI) service has been disabled. This error is specific to Windows only."
79
+ if code == LexFloatStatusCodes .LF_E_MACHINE_FINGERPRINT :
80
+ return 'Machine fingerprint has changed since activation.'
81
+ if code == LexFloatStatusCodes .LF_E_PROXY_NOT_TRUSTED :
82
+ return 'Request blocked due to untrusted proxy.'
67
83
return 'Unknown error!'
Original file line number Diff line number Diff line change @@ -39,10 +39,26 @@ class LexFloatStatusCodes:
39
39
LF_E_METER_ATTRIBUTE_USES_LIMIT_REACHED = 56
40
40
41
41
LF_E_PRODUCT_VERSION_NOT_LINKED = 57
42
-
42
+
43
43
LF_E_FEATURE_FLAG_NOT_FOUND = 58
44
-
44
+
45
+ LF_E_SYSTEM_PERMISSION = 59
46
+
45
47
LF_E_IP = 60
48
+
49
+ LF_E_INVALID_PERMISSION_FLAG = 61
50
+
51
+ LF_E_OFFLINE_FLOATING_LICENSE_NOT_ALLOWED = 62
52
+
53
+ LF_E_MAX_OFFLINE_LEASE_DURATION_EXCEEDED = 63
54
+
55
+ LF_E_ALLOWED_OFFLINE_FLOATING_CLIENTS_LIMIT_REACHED = 64
56
+
57
+ LF_E_WMIC = 65
58
+
59
+ LF_E_MACHINE_FINGERPRINT = 66
60
+
61
+ LF_E_PROXY_NOT_TRUSTED = 67
46
62
47
63
LF_E_CLIENT = 70
48
64
You can’t perform that action at this time.
0 commit comments