7#pragma warning( disable : 4275 )
22 : std::runtime_error( message.c_str() )
23 , m_errorCode( errorCode )
408#pragma warning( pop )
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
LSErrorCode
LicenseSpring Error codes enum.
@ eLicenseNotFound
License not found.
@ eNotEnoughConsumptionError
Consumption license or feature run out of resources.
@ eInvalidCredential
Username does not exist or wrong password provided.
@ eWatchdogError
Failed to set license watchdog.
@ eTrialNotAllowed
Getting trial licenses is restricted by product license policy.
@ eFloatingFeatureDeviceNotInUse
Device was never used to check out a floating feature.
@ eServerError
Internal server error.
@ eInvalidConfirmationCode
Air gap confirmation code is invalid.
@ eSSOTokenError
Token for SSO is not valid or expired.
@ eInvalidLicenseFeatureError
Feature does not exist or wrong feature type.
@ eInvalidLicenseFeatureCode
Feature code not found on license.
@ eLicenseSpringInternalError
Internal SDK error, please contact support or try to update SDK.
@ eDeviceError
Device from which the call is made is not licensed (Hardware ID mismatch)
@ eProductMismatchError
License product code doesn't correspond to configuration product code.
@ eClockTamperedError
Detected that system clock has been set back.
@ eDeviceBlacklisted
Device has been added to the blacklist by admin on LicenseSpring platform.
@ eInvalidOrderIDError
Order with specified ID already exists and ShouldAppend flag set to false.
@ eSignatureMismatchError
Server signature is not valid.
@ eLicenseNotFloating
The license is not floating.
@ eFeatureNotFloating
License feature that should be released is not a floating feature.
@ eAuthorizationError
Authorization failed.
@ eNetworkTimeoutError
Request to the backend has timed out.
@ eRequestDateHeaderInvalid
Request DateTime header is invalid, please set correct date time on target device,...
@ eVMDNotAvailable
Windows only, in case VM detection dll not found or tempered.
@ eNoInternetError
Problems with Internet connection.
@ eLocalLicenseError
SDK could not read or write license to the storage.
@ eVMNotAllowed
Running on Virtual machine not allowed.
@ eGeneralLSError
General LicenseSpring error.
@ eVersionError
App version not found on the backend.
@ eActivationFailed
Internal server error.
@ ePasswordChangeNotAllowed
Password change is restricted by product policy.
@ eFloatingTimeoutExpired
Floating license borrowing period or floating timeout expired.
@ eMissingEmailError
Missing email in API call for user-based product, probably attempt to get trial license with empty em...
@ eLicenseNoAvailableActivations
The license has already been activated maximum number of times.
@ eMaxFloatingReached
Reached max users count for floating license.
@ eInitializationError
Invalid Configuration settings.
@ eProductError
Product not found on the backend.
@ eCannotBeActivatedNow
Current date is behind license start date.
@ eUnknownError
Unknown error encountered.
@ eSSOError
Customer account not found or SSO is not set up properly.
Throws when confirmation code from the air gap activation portal is invalid.
AirGapActivationException(const std::string &message)
This exception can arise if provided api key cannot be used for the request.
ApiKeyException(const std::string &message, LSErrorCode errorCode)
Authorization failed, please check your proxy settings.
AuthorizationException(const std::string &message)
This exception can arise if provided borrowing period bigger than max possible. Or if license borrowi...
BorrowLicenseException(const std::string &message, LSErrorCode errorCode)
Can be thrown if start date field is set for the license and current date is behind start date.
CannotBeActivatedNowException(const std::string &message)
This exception means that detected that system clock has been set back.
ClockTamperedException(const std::string &message)
Throws in case of something wrong with Configuration. E.g. wrong API or Shared key.
ConfigurationException(const std::string &message)
This exception can arise during license check if device has been blacklisted by Product manager.
DeviceBlacklistedException(const std::string &message)
Throws in case computer hardware configuration has been changed or license does not belong to this co...
DeviceNotLicensedException(const std::string &message)
This exception can arise if releasing a device on a non-floating license feature.
FeatureNotFloatingException(const std::string &message)
This exception can arise if device was never used to check a feature.
FloatingFeatureDeviceNotInUseException(const std::string &message)
Throws in case floating license timeout or borrowing period is expired and it needs to be registered.
FloatingTimeoutExpiredException(const std::string &message)
This exception means that user or password is wrong.
InvalidCredentialException(const std::string &message)
This exception can arise if the given feature code is not found on a license.
InvalidLicenseFeatureCodeException(const std::string &message)
Throws when product feature does not exist or wrong feature type.
InvalidLicenseFeatureException(const std::string &message)
Throws when order with specified ID already exists and ShouldAppend flag set to false.
InvalidOrderIDException(const std::string &message)
Rare exception, can arise if activation is limited to some device count or license transfer is prohib...
LicenseActivationException(const std::string &message)
Throws when license has already been activated maximum number of times.
LicenseNoAvailableActivationsException(const std::string &message)
This exception can arise during floating license registration on floating server.
LicenseNotFloatingException(const std::string &message)
Throws in case license not found on the server.
LicenseNotFoundException(const std::string &message)
Indicates internal server error, please contact support if you face this exception.
LicenseServerException(const std::string &message)
Base class for all LicenseSpring exceptions.
LSErrorCode getCode() const
LicenseSpringException(const std::string &message, LSErrorCode errorCode=LSErrorCode::eGeneralLSError)
Please, contact support or try to update SDK if you got this exception. Normally should never happen.
LicenseSpringInternalException(const std::string &message)
Throws in case license is in invalid state (disabled, epired or inactive).
LicenseStateException(const std::string &message, LSErrorCode errorCode)
This exception means that SDK could not read or write license to the storage.
LocalLicenseException(const std::string &message)
This exception can arise during online check of floating license if reached maximum users count for t...
MaxFloatingReachedException(const std::string &message)
Throws when email is missing in API call for user-based product, probably attempt to get trial licens...
MissingEmailException(const std::string &message)
This exception means that network operation timed out.
NetworkTimeoutException(const std::string &message)
This exception means that SDK cannot reach the server. Because of no internet connection,...
NoInternetException(const std::string &message)
This exceptions means that Consumption license or feature ran out of resources.
NotEnoughConsumptionException(const std::string &message)
This exception can arise if password change is restricted by company policy.
PasswordChangeNotAllowedException(const std::string &message)
This exceptions means that license product code doesn't correspond to configuration product code.
ProductMismatchException(const std::string &message)
Throws in case product not found on the server.
ProductNotFoundException(const std::string &message)
Throws in case installation file not found for requested app version.
ProductVersionException(const std::string &message)
This exception can arise if system date time on the current device is incorrectly set.
RequestDateInvalidException(const std::string &message)
This exception can arise if the backend cannot create URL for Single sign-on (SSO)
SSOException(const std::string &message)
This exception can arise if token for Single sign-on (SSO) is invalid or expired.
SSOTokenException(const std::string &message)
Throws in case signature returned by LicenseSpring server is not valid.
SignatureMismatchException(const std::string &message)
Can be thrown in case getting trial licenses is restricted by product license policy.
TrialNotAllowedException(const std::string &message)
In case LicenseSpring backend returns unexpected error or something went wrong.
UnknownLicenseSpringException(const std::string &message)
Windows only. In case VM detection dll not found, tempered or detection failed.
VMDNotAvailableException(const std::string &message)
This exception can arise on virtual machine when VM detection is enabled but product policy prohibits...
VMIsNotAllowedException(const std::string &message)
This exception can arise if setting license watchdog failed.
WatchdogException(const std::string &message)