01: // HTTPRuntimeException.java
02: // $Id: HTTPRuntimeException.java,v 1.2 1998/01/22 14:02:05 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigsaw.http;
07:
08: /**
09: * HTTP runtime exception.
10: * These exeptions should be thrown whenever as a programmer you encounter
11: * an abnormal situation. These exception are guaranted to be catched, and to
12: * only kill the client (if this makes sense) that triggered it.
13: */
14:
15: public class HTTPRuntimeException extends RuntimeException {
16:
17: /**
18: * Create a new HTTPRuntime exception. This is the right way to throw
19: * runtime exceptions from the http server, since it is the one that is
20: * likely to provide most usefull informations.
21: * @param o The object were the error originated.
22: * @param mth The method were the error originated.
23: * @param msg An message explaining why this error occured.
24: */
25:
26: public HTTPRuntimeException(Object o, String mth, String msg) {
27: super (o.getClass().getName() + "[" + mth + "]: " + msg);
28: }
29:
30: }
|