DexelaDetector API: DexelaException.h Source File

Dexela API

DexelaException.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #ifndef DEX_BUILD
5 #ifdef _DEBUG
6 #pragma comment(lib,"DexelaException-d.lib")
7 #else
8 #pragma comment(lib,"DexelaException.lib")
9 #endif
10 #endif
11 
12 #include "dexdefs.h"
13 #include <exception>
14 
15 using namespace std;
16 
21 class DllExport DexelaException :
22  public exception
23 {
24 public:
25  DexelaException(const char* message, Derr code, int line, const char* filename, const char* function, int transportEr, const char* transportMessage);
26  DexelaException(const DexelaException& ex, const char* function);
27  ~DexelaException(void) throw();
28  const char* what() const throw ();
29  Derr GetCode();
30  int GetTransportError();
31  const char* GetFileName();
32  int GetLineNumber();
33  const char* GetFunctionName();
34  const char* GetTransportMessage();
35 
36 
37  static void LoadErrorStrings(const char* filename);
38 
39 private:
40  const char* _msg;
41  Derr _code;
42  const char* _filename;
43  int _line;
44  const char* _func;
45  int _transEr;
46  const char*_transMsg;
47 };
48 
49 #define rethrowEr(EX) \
50  throw DexelaException(EX,__FUNCTION__);\
51 
52 #define throwNewEr(MSG,CODE,TRANSER,TRANSMSG) \
53  throw DexelaException(MSG,CODE,__LINE__,__FILE__,__FUNCTION__,TRANSER, TRANSMSG);\
54 
Derr
Enumration for error codes returned from the API functions
Definition: DexDefs.h:147
This class contains information about any possible error's in the API. In the event of a problem a De...
Definition: DexelaException.h:21
Generated on Tue Nov 25 2014 10:22:44 for DexelaDetector API by   doxygen 1.8.7