Debian Codegraph @

mmap_exception.h

raw symbols SCIP
1 #ifndef _MMAP_EXCEPTION
2 #define _MMAP_EXCEPTION
3
4 #include "mmap_access_mode.h"
5 #include <stdexcept>
6
7 namespace mmap_allocator_namespace
8 {
9 class mmap_allocator_exception: public std::runtime_error {
10 public:
11 mmap_allocator_exception(const char *msg_param) throw():
12 std::runtime_error(msg_param)
13 {
14 if (get_verbosity() > 0) {
15 fprintf(stderr, "Throwing exception %s\n", msg_param);
16 }
17 }
18
19 mmap_allocator_exception(std::string msg_param) throw():
20 std::runtime_error(msg_param)
21 {
22 if (get_verbosity() > 0) {
23 fprintf(stderr, "Throwing exception %s\n", msg_param.c_str());
24 }
25 }
26
27 virtual ~mmap_allocator_exception(void) throw()
28 {
29 }
30 private:
31 };
32 }
33
34 #endif