home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH16 / A16233.TXT < prev    next >
Encoding:
Text File  |  1993-11-25  |  424 b   |  8 lines

  1. In this program, the declaration of the function Process()
  2. specifies that it can throw only a MathErr exception.  Process()
  3. calls divide().  divide() throws a long exception because of an
  4. attempt to divide by zero.  In other words, Process() throws a
  5. long exception indirectly.  Because Process() does not include
  6. long in its exception specification, the system-defined handler
  7. unexpected() is invoked by the system.
  8.