Annotation of java/classes/org/w3c/util/Trace.java, revision 1.2

1.1       bmahe       1: package w3c.util;
                      2: 
                      3: public class Trace extends Throwable {
                      4: 
1.2     ! bmahe       5:   public static void showTrace() {
        !             6:     try {
        !             7:       throw new Trace("");
        !             8:     } catch (Trace t) {
        !             9:       System.out.print("\n");
        !            10:       t.printStackTrace();
        !            11:     }    
        !            12:   }
        !            13: 
1.1       bmahe      14:   public static void showTrace(String title) {
                     15:     try {
                     16:       throw new Trace("\n\""+title+"\"");
                     17:     } catch (Trace t) {
                     18:       System.out.print("\n");
                     19:       t.printStackTrace();
                     20:     }
                     21:   }
                     22: 
                     23:   public Trace() {
                     24:     super();
                     25:   }
                     26: 
                     27:   public Trace(String s) {
                     28:     super(s);
                     29:   }
                     30: 
                     31: }

Webmaster