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

Throwable Class Reference

#include <Throwable.hpp>

Inheritance diagram for Throwable::

Error Exception LinkageError VirtualMachineError ClassNotFoundException CloneNotSupportedException IllegalAccessException InstantiationException InterruptedException NoSuchFieldException NoSuchMethodException RuntimeException List of all members.

Public Methods

 Throwable ()
 Throwable (String s)
String getMessage ()
String getLocalizedMessage ()
String toString ()
void printStackTrace ()
void printStackTrace (PrintStream printstream)
void printStackTrace (PrintWriter printwriter)
Throwable fillInStackTrace ()
 Throwable ()
 Throwable (String *s)
StringgetMessage ()
StringgetLocalizedMessage ()
StringtoString ()
void fillInStackTrace ()

Private Methods

void printStackTrace0 (Object obj)

Private Attributes

Object backtrace
String detailMessage
StringdetailMessage

Static Private Attributes

final long serialVersionUID = 0xd5c635273977b8cbL

Constructor & Destructor Documentation

Throwable::Throwable   [inline]
 

Definition at line 18 of file Throwable.cpp.

00019     {
00020         fillInStackTrace();
00021     }

Throwable::Throwable String    s [inline]
 

Definition at line 23 of file Throwable.cpp.

00024     {
00025         fillInStackTrace();
00026         detailMessage = s;
00027     }

Throwable::Throwable   [inline]
 

Definition at line 25 of file Throwable.hpp.

00026     {
00027 //        fillInStackTrace();
00028     }

Throwable::Throwable String   s [inline]
 

Definition at line 30 of file Throwable.hpp.

00031     {
00032 //        fillInStackTrace();
00033         detailMessage = s;
00034     }


Member Function Documentation

void Throwable::fillInStackTrace   [inline]
 

Definition at line 89 of file Throwable.hpp.

00089                             {
00090       // String* s = toString();
00091       cout << "!";
00092    }

Throwable Throwable::fillInStackTrace  
 

Referenced by Throwable().

String& Throwable::getLocalizedMessage   [inline]
 

Definition at line 41 of file Throwable.hpp.

00042     {
00043         return getMessage();
00044     }

String Throwable::getLocalizedMessage   [inline]
 

Definition at line 34 of file Throwable.cpp.

00035     {
00036         return getMessage();
00037     }

String& Throwable::getMessage   [inline]
 

Definition at line 36 of file Throwable.hpp.

00037     {
00038         return *detailMessage;
00039     }

String Throwable::getMessage   [inline]
 

Definition at line 29 of file Throwable.cpp.

Referenced by getLocalizedMessage(), and toString().

00030     {
00031         return detailMessage;
00032     }

void Throwable::printStackTrace PrintWriter    printwriter [inline]
 

Definition at line 62 of file Throwable.cpp.

00063     {
00064         printwriter.println(this);
00065         printStackTrace0(printwriter);
00066     }

void Throwable::printStackTrace PrintStream    printstream [inline]
 

Definition at line 56 of file Throwable.cpp.

00057     {
00058         printstream.println(this);
00059         printStackTrace0(printstream);
00060     }

void Throwable::printStackTrace   [inline]
 

Definition at line 50 of file Throwable.cpp.

00051     {
00052         System.err.println(this);
00053         printStackTrace0(System.err);
00054     }

void Throwable::printStackTrace0 Object    obj [private]
 

Referenced by printStackTrace().

String* Throwable::toString   [inline]
 

Definition at line 46 of file Throwable.hpp.

00047     {
00048         const char* s = "getName()";
00049         String* s2;
00050         // getClass().getName();
00051 
00052         const char* s1  = detailMessage->string();
00053               char* buf = new char[160];
00054         if (s1 != NULL) {
00055           sprintf( buf, "%s : %s", s, s1 );
00056         } else {
00057           sprintf( buf, "%s", s );
00058         }
00059 
00060    s2 = new String( buf );
00061 
00062    delete[] buf;
00063 
00064    return s2;
00065     }

String Throwable::toString   [inline]
 

Definition at line 39 of file Throwable.cpp.

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     }


Member Data Documentation

Object Throwable::backtrace [private]
 

Definition at line 76 of file Throwable.cpp.

String* Throwable::detailMessage [private]
 

Definition at line 104 of file Throwable.hpp.

String Throwable::detailMessage [private]
 

Definition at line 77 of file Throwable.cpp.

final long Throwable::serialVersionUID = 0xd5c635273977b8cbL [static, private]
 

Definition at line 78 of file Throwable.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:50:13 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001