Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

xmog_error_handler.h

00001 /*
00002  * Copyright 1999-2006 by Codemesh, Inc.  ALL RIGHTS RESERVED.
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     // Holds the exception that occured when the policy is set to ExceptionCallback.
00230     //
00231     // This exception is then accessible via "C" functions that can be used to query
00232     // what went wrong in a calling C application.
00233     //
00234     xmog_exception *        exc_;
00235 };
00236 
00237 
00238 #endif /* xmog_error_handler_inc */

Generated on Wed May 31 14:01:19 2006 for Shared Codemesh Runtime Library API Reference by  doxygen 1.4.1