home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-08-19 | 396 b | 15 lines |
- import netscape.server.applet.*;
-
- /*
- ** This class tests what happens when an exception is thrown by an
- ** applet. The question is, what should happen? Should the server just
- ** report the error to the error log, or should the exception message be
- ** returned to the user?
- */
- class Throw extends HttpApplet {
-
- public void run() throws Exception {
- throw new Exception("Hello World");
- }
- }
-