License configuration

License configuration exceptions

TLicenseConfigException is an abstract base class for all license system configuration errors. Each component of the License Service that throws a configuration exception should create a derived class of TLicenseConfigException.

      class TLicenseConfigException : public TLicenseException {
      //    Copyright (C) 1995 Taligent, Inc. All rights reserved.
      public:
          virtual~TLicenseConfigException();
      protected:
      };
TStandardLicenseConfigException is a concrete class for standard license system configuration errors.

      class TStandardLicenseConfigException : public TLicenseConfigException {
      //    Copyright (C) 1995 Taligent, Inc. All rights reserved.
      public:
          enum EReason
          {
          kNoProvidersFound,
          kLicenseDirectoryNotFound,
          };
                  TStandardLicenseConfigException(EReason whatHappened);
                  TStandardLicenseConfigException(const TStandardLicenseConfigException& copy);
          TStandardLicenseConfigException& operator=(const TStandardLicenseConfigException& copy);
          virtual~TStandardLicenseConfigException();
      
          EReason GetReason() const;
          virtual voidThrow() const;
      
      protected:
      };
GetReason returns the information that explains why the exception was thrown by the provider. The returned values can be any of the following:


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker