home *** CD-ROM | disk | FTP | other *** search
- In this example, Exception is a base exception class from which
- the class MathExcept is derived. Notice that the exception
- specification of the function divide() lets it throw only
- exceptions of type Exception and that the handler in main()
- catches only exceptions of type Exception. Since a MathExcept
- object is an Exception object, the MathExcept exception can be
- thrown and caught.
-