MADARA  3.2.3
MemoryException.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_EXCEPTION_MEMORYEXCEPTION_H_
3 #define _MADARA_EXCEPTION_MEMORYEXCEPTION_H_
4 
5 #include <string>
6 #include <stdexcept>
7 
8 namespace madara
9 {
10  namespace exceptions
11  {
15  class MemoryException : public std::runtime_error
16  {
17  public:
21  explicit MemoryException (const std::string & what)
22  : std::runtime_error (what)
23  {
24 
25  }
26  };
27  }
28 }
29 
30 #endif /* _MADARA_EXCEPTION_MEMORYEXCEPTION_H_ */
STL namespace.
static struct madara::knowledge::tags::string_t string
An exception for general memory errors like out-of-memory.
Copyright (c) 2015 Carnegie Mellon University.
MemoryException(const std::string &what)
Constructor.