Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_error_handler.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_error_handler_inc
7 #define xmog_error_handler_inc
8 
10 
11 class xmog_localenv;
12 class xmog_exception;
13 
15 
16 
17 #include "xmog_options.h"
18 
151 
162 class XMOG_DECLSPEC xmog_error_handler
163 {
164 public:
165 
172  xmog_error_handler( xmog_options * opts = NULL );
173 
181 
186 
192 
196  xmog_exception_policy get_policy();
197 
211  int handleJavaException( int error_code, xmog_localenv * env = NULL, bool ignore = false );
212 
213 # if (XMOG_SUPPORTS_CLR_HOSTING==1)
214 
228  int handleClrException( int error_code, xmog_localenv * env = NULL, bool ignore = false );
229 
230 # endif
231 
242  int handleFrameworkException( int error_code, const char * msg = NULL, xmog_localenv * env = NULL, bool ignore = false );
243 
244 private:
245 
247 
248  //
249  // Holds the exception that occured when the policy is set to ExceptionCallback.
250  //
251  // This exception is then accessible via "C" functions that can be used to query
252  // what went wrong in a calling C application.
253  //
254  xmog_exception * exc_;
255 };
256 
257 
258 #endif /* xmog_error_handler_inc */
xmog_error_handler
The type responsible for error handling.
Definition: xmog_error_handler.h:162
xmog_exception_policy
xmog_exception_policy
The exception handling policy.
Definition: xmog_options.h:140
xmog_options
This class wraps around options that govern the overall behavior of the runtime library with respect ...
Definition: xmog_options.h:258
xmog_localenv
A class representing per-thread information for the integration runtime.
Definition: xmog_localenv.h:32
xmog_exception
The wrapper for exceptions that occur on the Java side.
Definition: xmog_exception.h:46

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.