home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / nsfast / root.10 / usr / ns-home / plugins / java / applets / Throw.java / Throw.java
Encoding:
Java Source  |  1998-08-19  |  396 b   |  15 lines

  1. import netscape.server.applet.*;
  2.  
  3. /*
  4. ** This class tests what happens when an exception is thrown by an
  5. ** applet. The question is, what should happen? Should the server just
  6. ** report the error to the error log, or should the exception message be
  7. ** returned to the user?
  8. */
  9. class Throw extends HttpApplet {
  10.  
  11.     public void run() throws Exception {
  12.     throw new Exception("Hello World");
  13.     }
  14. }
  15.