Products Support Documentation Download
cpp-exception.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  *
3  * Raima Database Manager
4  *
5  * Copyright (c) 2011 Raima Inc., All rights reserved.
6  *
7  * Use of this software, whether in source code format, or in executable,
8  * binary object code form, is governed by the Birdstep LICENSE which
9  * is fully described in the LICENSE.TXT file, included within this
10  * distribution of files.
11  *
12  * ----------------------------------------------------------------------------
13  */
14 
19 #if !defined(CPP_EXCEPTION_H_INCLUDED_)
20 #define CPP_EXCEPTION_H_INCLUDED_
21 
22 #if !defined(__cplusplus)
23 #error cpp-exception.h is only for C++ applications. Do not include it in C applications
24 #endif
25 
26 #if defined(RDM_WINDOWS) || defined(RDM_WINCE)
27 #pragma warning(disable: 4290)
28 #endif
29 
30 #include "psptypes.h"
31 #include "rdmretcodetypes.h"
32 #include <exception>
33 
34 namespace RDM_CPP {
35  class rdm_exception;
36 }
37 
38 #if defined(RDM_WINDOWS)
39 #if defined(RDM_WINCE)
40 #pragma warning (push)
41 #endif
42 #pragma warning (disable:4275)
43 #endif
44 
48 class PUBLIC_CLASS RDM_CPP::rdm_exception : public std::exception
49 {
50 public:
52  rdm_exception (RDM_RETCODE error);
53 
55  virtual const char* GetDescription() const throw();
56  virtual const char* GetEnum() const throw();
57 
59  RDM_RETCODE GetErrorCode (void) const;
60 
61 protected:
63 };
64 
65 #if defined(RDM_WINCE)
66 #pragma warning (pop)
67 #endif
68 #endif /* CPP_EXCEPTION_H_INCLUDED_ */
Header for the Platform Support Package - Platform dependent types.
the rdm_exception class This class implements the exception thrown by the RDM CPP API ...
Definition: cpp-exception.h:48
RDM Status and Error Return Codes.
RDM_RETCODE
RDM status and error return codes.
The RDM C++ Namespace.
Definition: cpp-cursor.h:27