00001 #ifndef xmogInc_javaxjmsJMSException
00002 #define xmogInc_javaxjmsJMSException
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 }
00020 }
00021 namespace javax
00022 {
00023 namespace jms
00024 {
00025 class JMSException;
00026 }
00027 }
00028
00029 # include "java_lang_Exception.h"
00030
00031
00032 # if (XMOG_UNDEFINE_MEM_OPERATORS==1)
00033 # if defined(new)
00034 # undef new
00035 # endif
00036 # if defined(delete)
00037 # undef delete
00038 # endif
00039 # endif
00040
00064 class JMS_DECLSPEC javax::jms::JMSException :
00065 public ::java::lang::Exception
00066 {
00067 public:
00068 enum
00069 {
00070 xmogDefaultFlags = xmog_base::GLOBAL,
00071 xmogMajorVersion = 3,
00072 xmogMinorVersion = 2,
00073 xmogPatchVersion = 9,
00074 xmogBuildNumber = 2047
00075 };
00076
00077 public:
00078
00079 typedef ::xmog_java_array_template< ::javax::jms::JMSException > array1D;
00080
00081 typedef ::xmog_java_array_template< ::xmog_java_array_template< ::javax::jms::JMSException > > array2D;
00082
00084
00101 JMSException( );
00102
00115 JMSException( const ::javax::jms::JMSException & _rhs );
00116
00129 JMSException( jobject _local, xmog_flags f_xflags );
00130
00143 JMSException( const ::xmog_null & _null_instance );
00144
00155 JMSException( ::xmog_java_array * _arr, jint _index );
00156
00170 JMSException( const ::javax::jms::JMSException & _rhs, ::xmog_localenv * p_lxenv );
00171
00183 XMOG_EXPLICIT JMSException( ::xmog_base * _delegate, bool _owns_delegate = true );
00184
00198 JMSException( ::xmog_java_ref * _cra, ::xmog_java_dynamic * _dynamic, xmog_flags f_xflags = xmogDefaultFlags );
00199
00201
00211 JMSException( const ::java::lang::String & reason, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00212
00224 JMSException( const ::java::lang::String & reason, const ::java::lang::String & errorCode, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00225
00227
00234 ~JMSException( );
00235
00248 javax::jms::JMSException operator =( const javax::jms::JMSException & _rhs );
00249
00264 void operator delete( void * _ptr );
00265
00266 # if (XMOG_SUPPORTS_PLACEMENT_DELETE==1)
00282 void operator delete( void * ptr, void * loc );
00283 # endif
00284
00299 void * operator new( size_t _size );
00300
00301 # if (XMOG_SUPPORTS_PLACEMENT_NEW==1)
00319 void * operator new( size_t _size, void * _ptr );
00320 # endif
00321
00342 static ::javax::jms::JMSException dyna_cast( const ::xmog_base & _rhs, ::xmog_localenv * p_lxenv = NULL, xmog_flags flags = xmogDefaultFlags );
00343
00345
00357 virtual ::java::lang::String getErrorCode( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00358
00369 virtual ::java::lang::Exception getLinkedException( ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00370
00372
00386 static ::xmog_java_class * get_class( );
00387
00396 static ::xmog_java_class * get_element_class( );
00397
00399
00411 virtual void setLinkedException( const ::java::lang::Exception & ex, ::xmog_localenv * p_xenv = NULL, xmog_flags f_xflags = xmogDefaultFlags );
00412
00414
00433 virtual ::xmog_java_class * xmog_get_java_peer( ::xmog_localenv * p_lxenv = NULL );
00434
00446 static void XMOG_CALLING_CONVENTION xmog_throw_( jobject exc, xmog_flags f_xflags );
00448
00449 };
00450 #endif
00451