Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RetryException.h
Go to the documentation of this file.
1 #ifndef SAFIR_DATABASES_ODBC_RETRYEXCEPTION_H_INCLUDED
2 #define SAFIR_DATABASES_ODBC_RETRYEXCEPTION_H_INCLUDED
3 
4 #ifdef _MSC_VER
5 #ifdef DOTS_GENERATED_CPP_EXPORTS
6 #define GENERATED_API __declspec(dllexport)
7 #else
8 #define GENERATED_API __declspec(dllimport)
9 #ifdef _DEBUG
10 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
11 #else
12 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
13 #endif
14 #endif
15 #endif
16 #ifdef __GNUC__
17 #define GENERATED_API
18 #endif
19 
21 
25 namespace Safir
26 {
30 namespace Databases
31 {
35 namespace Odbc
36 {
37 
42  class GENERATED_API RetryException :
44  {
45  public:
59  (const std::wstring & message,
60  const std::wstring & fileName, //Use the __WFILE__ macro
61  const Safir::Dob::Typesystem::Int64 lineNumber);//Use the __LINE__ macro
62 
63  //override of pure virtual
64  virtual const std::wstring GetName() const;
65 
67  static const Safir::Dob::Typesystem::TypeId ExceptionTypeId = -2721778258300722682LL;
68 
69  //override of pure virtual
70  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ExceptionTypeId;}
71 
72  };
73 
74 
75 } // Odbc
76 } // Databases
77 } // Safir
78 
79 #endif
80 
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this exception.
Definition: RetryException.h:70
This is the base class of all (non-Fundamental) Exceptions.
Definition: Exceptions.h:223
The operation failed try again.
Definition: RetryException.h:42
DotsC_Int64 Int64
64 bit integer type.
Definition: Dob/Typesystem/Defs.h:72
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
DOTS_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.