Error Handling
Prerequisites
Handling Exceptions
try
{
license->localCheck();
}
catch( const DeviceNotLicensedException& ex )
{
// Handling specific error: trying to upgrade to new device id algorithm
license = m_licenseManager->relinkLicense( WinCryptographyId );
return;
}
catch( const LicenseSpringException& ex )
{
std::cout << "LicenseSpring exception encountered: " << ex.what();
}try
{
license.LocalCheck();
}
catch( DeviceNotLicensedException ex )
{
// Handling specific error: trying to upgrade to new device id algorithm
license = manager.RelinkLicense( DeviceIDAlgorithm.Gen3 );
return;
}
catch (LicenseSpringException ex )
{
Console.WriteLine( "LicenseSpring exception encountered: {0}", ex.Message );
}Common Exceptions
Exception
Definition
Handling C++ Errors
Common Errors
Error
Definition
Handling Swift errors
Last updated
Was this helpful?