Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReconnectException.h
Go to the documentation of this file.
1 #ifndef SAFIR_DATABASES_ODBC_RECONNECTEXCEPTION_H_INCLUDED
2 #define SAFIR_DATABASES_ODBC_RECONNECTEXCEPTION_H_INCLUDED
3 
4 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
5 
6 #ifdef dots_generated_Safir_cpp_EXPORTS
7 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
8 #else
9 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
10 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
11 # include <Safir/Utilities/Internal/AutoLink.h>
12 #endif
13 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
14 
16 
20 namespace Safir
21 {
25 namespace Databases
26 {
30 namespace Odbc
31 {
32 
39  {
40  public:
54  (const std::wstring & message,
55  const std::wstring & fileName, //Use the __WFILE__ macro
56  const Safir::Dob::Typesystem::Int64 lineNumber);//Use the __LINE__ macro
57 
58  //override of pure virtual
59  virtual const std::wstring GetName() const;
60 
62  static const Safir::Dob::Typesystem::TypeId ExceptionTypeId = 8472371723845673523LL;
63 
64  //override of pure virtual
65  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ExceptionTypeId;}
66 
67  };
68 
69 
70 } // Odbc
71 } // Databases
72 } // Safir
73 
74 #endif
75 
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this exception.
Definition: ReconnectException.h:65
This is the base class of all (non-Fundamental) Exceptions.
Definition: Exceptions.h:223
DotsC_Int64 Int64
64 bit integer type.
Definition: Defs.h:70
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
The database is down.
Definition: ReconnectException.h:37
DOTS_CPP_API std::wstring GetName(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::MemberIndex member)
Get the name of the specified member as it was defined in the xml description.
#define DOTS_GENERATED_Safir_API
Definition: ReconnectException.h:9