win/zz_win_exception.h

Go to the documentation of this file.
00001 /* libzzwin
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_win_exception_h
00010 #define zz_win_exception_h
00011 
00012 #include <zz_string.h>
00013 #include <zz_exception.h>
00014 #include <windows.h>
00015 
00016 /*
00017         Description:
00018         Windows exception
00019 
00020         Remarks:
00021         Hämtar senaste feltext mha. GetLastError()
00022 
00023         Author: 
00024         Toni Thomsson, toni@tonjac.org
00025 
00026         Library:
00027         libzzwin.lib
00028 
00029         Platform:
00030         win32
00031 */
00032 class ZZ_API CzzWinException : public CzzException
00033 {
00034 public:
00035 
00036         /* 
00037                 Description: 
00038                 Översätter ett windows fel till ett CzzException
00039 
00040                 Example:
00041                 if( GetModuleFileName( NULL, buff, 256 ) == 0 )
00042                         throw CzzWinException( _LAF, "Kunde läsa modulnamnet" );
00043 
00044         */
00045         CzzWinException( int lineNumber,                // IN, radnummer
00046                                                 CzzString fileName,     // IN, filnamn
00047                                                 CzzString reason        // IN, orsak
00048                                                 );
00049 
00050         virtual ~CzzWinException() {};
00051 
00052 protected:
00053 
00054         CzzString GetLastErrorText( void );
00055 };
00056 
00057 #endif // zz_win_exception_h
00058 

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO