Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Deprecated/Lang/Error/n/Throwable.cpp

Go to the documentation of this file.
00001 // Decompiled by Jad v1.5.7d. Copyright 2000 Pavel Kouznetsov.
00002 // Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
00003 // Decompiler options: packimports(3) 
00004 // Source File Name:   Throwable.java
00005 
00006 // package java.lang;
00007 
00008 // import java.io.*;
00009 
00010 // Referenced classes of package java.lang:
00011 //            Object, Class, String, StringBuffer, 
00012 //            System
00013 
00014 //    implements Serializable
00015 class Throwable
00016 {
00017 public:
00018     Throwable()
00019     {
00020         fillInStackTrace();
00021     }
00022 
00023     Throwable(String s)
00024     {
00025         fillInStackTrace();
00026         detailMessage = s;
00027     }
00028 
00029     String getMessage()
00030     {
00031         return detailMessage;
00032     }
00033 
00034     String getLocalizedMessage()
00035     {
00036         return getMessage();
00037     }
00038 
00039     String toString()
00040     {
00041         String s = getClass().getName();
00042         String s1 = getMessage();
00043         if (s1 != null) {
00044             return s + ": " + s1;
00045         } else {
00046             return s;
00047         }
00048     }
00049 
00050     void printStackTrace()
00051     {
00052         System.err.println(this);
00053         printStackTrace0(System.err);
00054     }
00055 
00056     void printStackTrace(PrintStream printstream)
00057     {
00058         printstream.println(this);
00059         printStackTrace0(printstream);
00060     }
00061 
00062     void printStackTrace(PrintWriter printwriter)
00063     {
00064         printwriter.println(this);
00065         printStackTrace0(printwriter);
00066     }
00067 
00068 //    public native
00069     Throwable fillInStackTrace();
00070 
00071 private:
00072 //    native
00073     void printStackTrace0(Object obj);
00074 
00075 //    transient
00076     Object backtrace;
00077     String detailMessage;
00078     static final long serialVersionUID = 0xd5c635273977b8cbL;
00079 };

Generated on Sun Oct 14 18:46:20 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001