Pol  Revision:cb584c9
strexcpt.h
Go to the documentation of this file.
1 
7 #ifndef CLIB_STREXCPT_H
8 #define CLIB_STREXCPT_H
9 
10 #include <stdexcept>
11 
12 // set_terminate
13 // set_unexpected
14 // set_se_handler
15 namespace Pol
16 {
17 namespace Clib
18 {
19 class structured_exception : public std::runtime_error
20 {
21 public:
22  unsigned int nSE;
23 
24 public:
25  structured_exception( unsigned int n, const char* text = "Structured Exception" )
26  : runtime_error( text ), nSE( n )
27  {
28  }
29 };
30 
32 {
33 public: // FIXME icky constant
34  access_violation() : structured_exception( 5, "Access Violation" ) {}
35 };
36 
38 }
39 }
40 #endif // CLIB_STREXCPT_H
structured_exception(unsigned int n, const char *text="Structured Exception")
Definition: strexcpt.h:25
void InstallOldStructuredExceptionHandler(void)
Definition: berror.cpp:12