1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// MCpp_Exception.h - MULTICAM C++ API - Exception
#if !defined(__MCPP_EXCEPTION_H__)
#define __MCPP_EXCEPTION_H__
 
namespace Euresys
{
  namespace MultiCam
  {
    // ********************************************************************************************
    // Exceptions
    // ----------
#define MCPP_MAX_EXCEPTION_DESCRIPTION_SIZE    1024
    struct Exception
    {
    private:
      char McDescription[MCPP_MAX_EXCEPTION_DESCRIPTION_SIZE];
 
    public:
      Exception(int error, const char *desc);
      Exception(Exception &e);
      Exception& operator=(Exception &e);
      inline ~Exception();
 
      int Error;
      const char *What();
      MCSTATUS GetMcStatus() { return Error; }
    };
 
  }
}
 
#endif