gatelib  2.1
g_PosixException.h
1 #pragma once
2 
3 #include "g_Exception.h"
4 
5 namespace g
6 {
7 #if G_AUTOPTION_ON_MSVC != 0
8  #pragma warning (disable:4275)
9 #endif
10 
12 class G_LIB_ITEM PosixException : public SysException
13 {
14 public:
15  PosixException ( GInt64_t posix_retuned_value , const char* posix_call , const Exception::Context& );
16  PosixException ( const Exception& inner , const Context& context ) : SysException(inner,context){}
17 
18  virtual const char* getTag ( ) { return "PosixException"; }
19 
20  static void do_Raise ( GInt64_t aPosixResult , const char* aPosixCall , const char* aContextStr , const char* aFile , int aLine );
21 
22 private:
23  void mInit( const std::wstring& aExtraDescription );
24 };
25 
26 #if G_AUTOPTION_ON_MSVC != 0
27  #pragma warning (default:4275)
28 #endif
29 
30 }//namespace g
31 
Exception class for encapsulating windows error.
Definition: g_PosixException.h:12
Definition: g_Exception.h:50
Definition: g.mthread.ThreadSimpleEvent.h:5
Anchestor Exception class for g::lib.
Definition: g_Exception.h:17