source: trunk/FACT++/src/DimErrorRedirecter.h@ 10771

Last change on this file since 10771 was 10511, checked in by tbretz, 14 years ago
Added exit handler; call exit handler in case of fatal error; add Dim id to messages.
File size: 425 bytes
Line 
1#ifndef FACT_DimErrorRedirecter
2#define FACT_DimErrorRedirecter
3
4#include <dis.hxx>
5
6class MessageImp;
7
8class DimErrorRedirecter : public DimErrorHandler, public DimExitHandler
9{
10private:
11 static int cnt;
12
13 MessageImp &fMsg;
14
15 void errorHandler(int severity, int code, char *msg);
16 void exitHandler(int code) { exit(code); }
17
18public:
19 DimErrorRedirecter(MessageImp &imp);
20 ~DimErrorRedirecter();
21};
22
23#endif
Note: See TracBrowser for help on using the repository browser.