M/c++_api/inc/DM/Exception.hpp
1 #pragma once
2 
3 #include "DM/config.hpp"
4 
5 #include "NG_Exception.hpp"
6 
7 DM_NAMESPACE_BEGIN
8 
9 /// \brief Any Exception thrown by the DM will be derived from this class
10 class DM_API Exception : public NG_exception {
11 public:
12  typedef NG_exception base;
13  Exception();
14  Exception(const char *errorMessage);
15  Exception(const Exception &);
16  Exception& operator=(const Exception &);
17  virtual ~Exception() noexcept;
18 };
19 
20 /// \brief This exception is thrown if the data manager can load the requested index leaf into memory, since all loaded index leafs are currently in use
21 class DM_API ExceptionDropElement : public Exception {
22 public:
25  ExceptionDropElement& operator=(const ExceptionDropElement &);
26  virtual ~ExceptionDropElement() noexcept;
27 };
28 
29 /// \brief This exception is thrown if the data manager tries to import (or opens existing ODMs) that exceeds the demo limit (also see setLicenceFile)
30 class DM_API ExceptionDemoLimit : public Exception {
31 public:
34  ExceptionDemoLimit& operator=(const ExceptionDemoLimit &);
35  virtual ~ExceptionDemoLimit() noexcept;
36 };
37 
38 /// \brief This exception is thrown if the processing was interrupted (usually by the user)
39 class DM_API ProcessingInterrupted : public Exception {
40 public:
43  ProcessingInterrupted& operator=(const ProcessingInterrupted &);
44  virtual ~ProcessingInterrupted() noexcept;
45 };
46 
47 
48 DM_NAMESPACE_END
Exception wrapper.
Definition: NG_Exception.hpp:13
This exception is thrown if the processing was interrupted (usually by the user)
Definition: M/c++_api/inc/DM/Exception.hpp:39
This exception is thrown if the data manager tries to import (or opens existing ODMs) that exceeds th...
Definition: M/c++_api/inc/DM/Exception.hpp:30
This exception is thrown if the data manager can load the requested index leaf into memory,...
Definition: M/c++_api/inc/DM/Exception.hpp:21
Any Exception thrown by the DM will be derived from this class.
Definition: M/c++_api/inc/DM/Exception.hpp:10