Throwable.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_OBJECT_H
00002 #include <java_lang/Object.h>
00003 #endif /* JAVA_LANG_OBJECT_H */
00004 // All header files that are included in JObject.h should move its includes to top
00005 
00006 #ifndef JAVA_LANG_THROWABLE_H
00007 #define JAVA_LANG_THROWABLE_H 1
00008 
00009 namespace java {
00010   namespace lang {
00011 
00052     class JAVA_LANG_SPEC Throwable : virtual public Object {
00053 
00054     public:
00055 
00064       static void put(const Ref<Throwable>& throwable);
00065 
00070       static jboolean isThrown();
00071 
00090       static Ref<Throwable> get();
00091 
00109       Throwable(const String& message = nilString, const Ref<Throwable>& cause = 0);
00110 
00120       virtual const String& getMessage() const;
00121 
00142       virtual Ref<Throwable> getCause() const;
00143 
00168       virtual Throwable& initCause(const Ref<Throwable>& cause);
00169 
00186       virtual String toString() const;
00187 
00188     private:
00189 
00197       String detailMessage;
00198 
00209       Ref<Throwable> cause;
00210 
00211       REGISTER_MEMBERS;
00212 
00213     };
00214 
00215   } // namespace lang
00216 } // namespace java
00217 
00218 #endif /* JAVA_LANG_THROWABLE_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3