00001 #ifndef xmogInc_javalangException
00002 #define xmogInc_javalangException
00003
00004 # if !defined(JMS_DECLSPEC )
00005 # if defined(_MSC_VER)
00006 # pragma message( "Relying on default definition of JMS_DECLSPEC " )
00007 # endif
00008
00009
00010 # define JMS_DECLSPEC
00011 # endif
00012
00013 namespace java
00014 {
00015 namespace lang
00016 {
00017 class Exception;
00018 class String;
00019 class Throwable;
00020 }
00021 }
00022
00023 # include "java_lang_Throwable.h"
00024
00025
00026 # if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00027 # if defined(new)
00028 # undef new
00029 # endif
00030 # if defined(delete)
00031 # undef delete
00032 # endif
00033 # endif
00034
00047 class JMS_DECLSPEC java::lang::Exception :
00048 public ::java::lang::Throwable
00049 {
00050 public:
00051 enum
00052 {
00053 xmogDefaultFlags = xmog_base::GLOBAL,
00054 xmogMajorVersion = 3,
00055 xmogMinorVersion = 2,
00056 xmogPatchVersion = 9,
00057 xmogBuildNumber = 2047
00058 };
00059
00060 public:
00061
00062 typedef ::xmog_java_array_template< ::java::lang::Exception > array1D;
00063
00064 typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Exception > > array2D;
00065
00067
00084 Exception( );
00085
00098 Exception( const ::java::lang::Exception & _rhs );
00099
00112 Exception( jobject _local, xmog_flags f_xflags );
00113
00126 Exception( const ::xmog_null & _null_instance );
00127
00138 Exception( ::xmog_java_array * _arr, jint _index );
00139
00153 Exception( const ::java::lang::Exception & _rhs, ::xmog_localenv * p_lxenv );
00154
00166 XMOG_EXPLICIT Exception( ::xmog_base * _delegate, bool _owns_delegate = true );
00167
00181 Exception( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00182
00184
00198 Exception( const ::java::lang::String & message, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00199
00217 Exception( const ::java::lang::Throwable & cause, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00218
00233 Exception( ::xmog_dummy _use_java_ctor, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00234
00253 Exception( const ::java::lang::String & message, const ::java::lang::Throwable & cause, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00254
00256
00263 ~Exception( );
00264
00277 java::lang::Exception operator =( const java::lang::Exception & _rhs );
00278
00293 void operator delete( void * _ptr );
00294
00295 # if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00311 void operator delete( void * ptr, void * loc );
00312 # endif
00313
00328 void * operator new( size_t _size );
00329
00330 # if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00348 void * operator new( size_t _size, void * _ptr );
00349 # endif
00350
00371 static ::java::lang::Exception dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00372
00386 static ::xmog_java_class * get_class( );
00387
00396 static ::xmog_java_class * get_element_class( );
00397
00416 virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00417
00429 static void XMOG_CALLING_CONVENTION xmog_throw_( jobject exc, xmog_flags f_xflags );
00431
00432 };
00433 #endif
00434