TLicenseNoUnitsAvailable is an abstract base class representing an exception that occurs when a license provider recognizes the product being licensed but currently has no licensing units.
class TLicenseNoUnitsAvailable : public TLicenseException { // Copyright (C) 1995 Taligent, Inc. All rights reserved. public: virtual~TLicenseNoUnitsAvailable(); protected: };
class TStandardLicenseNoUnitsAvailable : public TLicenseNoUnitsAvailable { // Copyright (C) 1995 Taligent, Inc. All rights reserved. public: enum EReason { kNoUnitsAvailable, }; TStandardLicenseNoUnitsAvailable(EReason whatHappened); TStandardLicenseNoUnitsAvailable(const TStandardLicenseNoUnitsAvailable& copy); TStandardLicenseNoUnitsAvailable& operator=(const TStandardLicenseNoUnitsAvailable& copy); virtual~TStandardLicenseNoUnitsAvailable(); EReason GetReason() const; virtual voidThrow() const; protected: };
GetReason returns the information that explains why the exception was thrown by the provider. The returned value can be: