Hide menu
Loading...
Searching...
No Matches
cadex.LicenseManager_LicenseError Class Reference

Defines an exception thrown by a license manager when a valid license could not be acquired. More...

Inherits global.SystemIDisposable.

Public Member Functions

 LicenseManager_LicenseError (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 LicenseManager_LicenseError ()
 
 LicenseManager_LicenseError (string theDetails)
 
string what ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Defines an exception thrown by a license manager when a valid license could not be acquired.

License Manager throws this exception when it cannot acquire a valid license for protected components. Use it to distinguish license-related errors from other exceptions.

Example:

try {
cadex::... aReader;
...
} catch (const cadex::LicenseManager_LicenseError& anError) {
std::cerr << "Could not acquire a valid product license. Reason: " << anError.what() << std::endl;
} catch (...) {
std::cerr << "Unprocessed exception caught" << std::endl;
}
Defines an exception thrown by a license manager when a valid license could not be acquired.
Definition LicenseManager_LicenseError.cs:32
Contains classes, namespaces, enums, types, and global functions related to Manufacturing Toolkit.
Definition BaseObject.cs:12

Constructor & Destructor Documentation

◆ LicenseManager_LicenseError()

cadex.LicenseManager_LicenseError.LicenseManager_LicenseError ( )
inline

Empty constructor.