00001
00002
00003
00004
00005 #ifndef xmog_error_handler_inc
00006 #define xmog_error_handler_inc
00007
00009
00010 class xmog_localenv;
00011 class xmog_exception;
00012
00014
00015
00016 #include "xmog_options.h"
00017
00150
00161 class XMOG_DECLSPEC xmog_error_handler
00162 {
00163 public:
00164
00171 xmog_error_handler( xmog_options * opts = NULL );
00172
00179 xmog_error_handler( const xmog_error_handler & eh );
00180
00184 ~xmog_error_handler();
00185
00190 xmog_exception_policy set_policy( xmog_exception_policy pol );
00191
00195 xmog_exception_policy get_policy();
00196
00210 int handleJavaException( int error_code, xmog_localenv * env = NULL, bool ignore = false );
00211
00222 int handleFrameworkException( int error_code, const char * msg = NULL, xmog_localenv * env = NULL, bool ignore = false );
00223
00224 private:
00225
00226 xmog_exception_policy pol_;
00227
00228
00229
00230
00231
00232
00233
00234 xmog_exception * exc_;
00235 };
00236
00237
00238 #endif