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