Debian Codegraph @

cvd/exceptions.h

raw symbols SCIP
1 #ifndef CVD_EXCEPTIONS_H
2 #define CVD_EXCEPTIONS_H
3
4 #include <stdexcept>
5
6 namespace CVD
7 {
8
9 /// %All exceptions thrown by CVD objects and functions are contained within this namespace.
10 /// @ingroup gException
11 namespace Exceptions
12 {
13 /// Base class for all CVD exceptions
14 /// @ingroup gException
15 struct All : public std::runtime_error
16 {
17 using std::runtime_error::runtime_error;
18 All()
19 : std::runtime_error("No exception message provided")
20 {
21 }
22 All(const std::string& whatarg)
23 : std::runtime_error(whatarg)
24 {
25 }
26 };
27
28 /// Out of memory exception
29 /// @ingroup gException
30 struct OutOfMemory : public All
31 {
32 OutOfMemory();
33 };
34 }
35
36 }
37 #endif