Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OverflowException.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_OVERFLOWEXCEPTION_H_INCLUDED
2 #define SAFIR_DOB_OVERFLOWEXCEPTION_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 Dob
31 {
32 
37  class GENERATED_API OverflowException :
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 = -2062290624417072950LL;
63 
64  //override of pure virtual
65  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ExceptionTypeId;}
66 
67  };
68 
69 
70 } // Dob
71 } // Safir
72 
73 #endif
74 
This is the base class of all (non-Fundamental) Exceptions.
Definition: Exceptions.h:223
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.
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this exception.
Definition: OverflowException.h:65
Thrown when data could not be sent due to overflowing queues.
Definition: OverflowException.h:37