






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:
- kLicenseDenied - The license request was denied.
- kUnrecognizedException - Nonstandard exception was caught.
- kBadConsumptionRate - Consumption rate must be greater than zero.
- kBadReportExceptionArg - ReportException called with bad arguments.
- kBadSelectedProviderProduct - Invalid provider product selection.
- kMethodShouldNotBeCalled - Hidden private member function should not be called.
- kNoProviderSelected - No provider was selected during ExecuteOperations.
- kSubclassDidNotExecuteOperations - Provider session did not implement ExecuteOperations.
[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