Skip to content

Commit 8849572

Browse files
authored
Merge pull request #36 from cryptlex/ahmad/error-code
chore: added server license expiry error code
2 parents 2ba5d30 + 4a6edbb commit 8849572

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cryptlex/lexfloatclient/lexfloatclient_exception.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ def get_error_message(code):
8484
return 'No entitlement set is linked to the license.'
8585
if code == LexFloatStatusCodes.LF_E_FEATURE_ENTITLEMENT_NOT_FOUND:
8686
return 'The feature entitlement does not exist.'
87+
if code == LexFloatStatusCodes.LF_E_LEASE_EXCEEDS_SERVER_LICENSE_EXPIRY:
88+
return 'Requested offline lease duration exceeds server license expiry date.'
8789
return 'Unknown error!'

cryptlex/lexfloatclient/lexfloatstatus_codes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@ class LexFloatStatusCodes:
7777
LF_E_SERVER_LICENSE_SUSPENDED = 75
7878

7979
LF_E_SERVER_LICENSE_GRACE_PERIOD_OVER = 76
80+
81+
LF_E_LEASE_EXCEEDS_SERVER_LICENSE_EXPIRY = 77

0 commit comments

Comments
 (0)