// $Revision: 1.4 $ // Copyright (C) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_MATHEXCEPTION #define TaligentSamples_MATHEXCEPTION #ifndef Taligent_STANDARDEXCEPTION #include #endif //---- TMathException ----------------------------------------------------------- class TMathException : public TStandardException { public: TaligentTypeExtensionDeclarationsMacro(TMathException) public: enum MathException { kOverflow = 0, kUnderflow }; TMathException(MathException error); TMathException(const TMathException& source); virtual ~TMathException(); TMathException& operator=(const TMathException& source); // The streaming operators are here to allow for adding data to the // class in the future. virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual void Throw() const; protected: TMathException(); private: enum {kOriginalVersion}; }; #endif