libcvd
exceptions.h
1 #ifndef CVD_EXCEPTIONS_H
2 #define CVD_EXCEPTIONS_H
3 
4 #include <stdexcept>
5 
6 namespace CVD
7 {
8 
11 namespace Exceptions
12 {
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 
30  struct OutOfMemory : public All
31  {
32  OutOfMemory();
33  };
34 }
35 
36 }
37 #endif
Out of memory exception.
Definition: exceptions.h:30
All classes and functions are within the CVD namespace.
Definition: argb.h:6
Base class for all CVD exceptions.
Definition: exceptions.h:15