License usage

License usage exceptions

TLicenseUsageException is a concrete class representing the errors that occur due to improper use of the Licensing framework.

      class TLicenseUsageException : public TLicenseException {
      //    Copyright (C) 1995 Taligent, Inc. All rights reserved.
      public:
      
          enum EReason
          {
          kUnrecognizedException,
          kBadConsumptionRate,
          kBadReportExceptionArg,
          kBadSelectedProviderProduct,
          kMethodShouldNotBeCalled,
          kNoProviderSelected,
          kSubclassDidNotExecuteOperations,
          };
      
                  TLicenseUsageException(EReason whatHappened);
                  TLicenseUsageException(const TLicenseUsageException& copy);
          TLicenseUsageException& operator=(const TLicenseUsageException& copy);
          virtual~TLicenseUsageException();
      
          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