-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGalaxyException.h
37 lines (28 loc) · 1 KB
/
GalaxyException.h
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
33
34
35
36
37
//------------------------------------------------------------------------
/**
\file GalaxyException.h
\brief GXIAPICPP's exception class
\Date 2016-8-09
\Version 1.1.1608.9091
*/
//------------------------------------------------------------------------
#pragma once
#pragma warning(disable: 4275) ///< non - DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
#include <iostream>
#include "GXStringCPP.h"
using namespace GxIAPICPP;
class GXIAPICPP_API CGalaxyException:public std::runtime_error
{
public:
///Constructor
CGalaxyException(int emErrorCode,const GxIAPICPP::gxstring& strDescription);
///Destructor
virtual ~CGalaxyException(void) throw();
///Get exception message
virtual const char * what() const throw();
///Get error code
int GetErrorCode();
private:
int m_emErrorCode; ///< The error code
GxIAPICPP::gxstring m_strDescription; ///< The stored message string
};