//____________________________________________________________________
// TElfinLicenseFailed
// Concrete class for license denied errors.
// Copyright (C) 1995 Taligent, Inc. All rights reserved.
//____________________________________________________________________
class TElfinLicenseFailed : public TLicenseException {
public:
enum EReason
{
kInvalidHostName,
kLicenseFailed,
kNoServer,
kTooFewServers,
kUnknownService,
kMaximum = USHRT_MAX// Not thrown; allows new EReason's
};
TElfinLicenseFailed(EReason whatHappened, const TText& message);
TElfinLicenseFailed(const TElfinLicenseFailed& copy);
TElfinLicenseFailed& operator=(const TElfinLicenseFailed& copy);
virtual ~TElfinLicenseFailed();
virtual TStream& operator>>=(TStream& toWhere) const;
virtual TStream& operator<<=(TStream& fromWhere);
EReason GetReason() const;
virtual voidThrow() const;
protected:
};
//____________________________________________________________________
// TElfinLicenseUsageException
// Concrete class for TElfinProvider* usage errors.
// Copyright (C) 1995 Taligent, Inc. All rights reserved.
//____________________________________________________________________
class TElfinLicenseUsageException : public TLicenseException {
public:
enum EReason
{
kBothPortAndServiceAreNull,
kFeatureTooLong,
kHostTooLong,
kNoConfigurationOperation,
kSessionCopyConstructorCalled,
kSessionDefaultConstructorCalled,
kMaximum = USHRT_MAX// Not thrown; allows new EReason's
};
TElfinLicenseUsageException(EReason whatHappened);
TElfinLicenseUsageException(const TElfinLicenseUsageException& copy);
TElfinLicenseUsageException& operator=(const TElfinLicenseUsageException& copy);
virtual ~TElfinLicenseUsageException();
EReason GetReason() const;
virtual void Throw() const;
protected:
};