GENIE
exception.h
Go to the documentation of this file.
1 #ifndef GENIE_EXCEPTION_EXCEPTION_H_
2 #define GENIE_EXCEPTION_EXCEPTION_H_
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace genie {
8 namespace exception {
9 
10 class NotImplementedException : public std::logic_error
11 {
12  public:
13  NotImplementedException() : std::logic_error("Function is not implemented") {}
14 };
15 
16 class InvalidConfigurationException : public std::logic_error
17 {
18  public:
19  InvalidConfigurationException(const std::string& what) : std::logic_error(what) {}
20 };
21 
22 class gpu_bad_alloc : public std::runtime_error
23 {
24  public:
25  gpu_bad_alloc(const std::string& what) : std::runtime_error(what) {}
26 };
27 
28 class gpu_runtime_error : public std::runtime_error
29 {
30  public:
31  gpu_runtime_error(const std::string& what) : std::runtime_error(what) {}
32 };
33 
34 class cpu_bad_alloc : public std::runtime_error
35 {
36 public:
37  cpu_bad_alloc(const std::string& what) : std::runtime_error(what) {}
38 
39 };
40 
41 class cpu_runtime_error : public std::runtime_error
42 {
43 public:
44  cpu_runtime_error(const std::string& what) : std::runtime_error(what) {}
45 
46 };
47 
48 } // end of namespace genie::exception
49 } // end of namespace genie
50 
51 #endif
This is the top-level namespace of the project.
cpu_runtime_error(const std::string &what)
Definition: exception.h:44
InvalidConfigurationException(const std::string &what)
Definition: exception.h:19
gpu_bad_alloc(const std::string &what)
Definition: exception.h:25
gpu_runtime_error(const std::string &what)
Definition: exception.h:31
cpu_bad_alloc(const std::string &what)
Definition: exception.h:37