home *** CD-ROM | disk | FTP | other *** search
- // EXCEPTN.HPP
- // C++ program that illustrates throwing
- // and catching of exceptions
-
- #include <iostream.h>
- #include <iomanip.h>
-
- // handles negative number exceptions
- class negativeNumberException {};
-
- // handles numbers greater than 99
- class largeIntegerException
- {
- public:
- largeIntegerException(int number)
- { theValue = number; }
- int theValue;
- };
-
-