NanoStructures  1.0
DMFT solver for layered, strongly correlated nanostructures
exceptions.h
1 #ifndef EXCEPTIONS_H
2 #define EXCEPTIONS_H
3 
4 #include "../err/exception.h"
5 
6 namespace error {
7 namespace math {
9 {
10 public:
11  MathException(std::string msg) : error::Exception(msg) {}
12  virtual ~MathException() throw() {}
13 };
15 {
16 public:
17  OutOfBounds() : MathException("Out of bounds.") {}
18  OutOfBounds(std::string msg) : MathException(msg) {}
19  virtual ~OutOfBounds() throw() {}
20 };
22 {
23 public:
24  Nan() : MathException("Out of bounds.") {}
25  Nan(std::string msg) : MathException(msg) {}
26  virtual ~Nan() throw() {}
27 };
28 }
29 }
30 
31 #endif // EXCEPTIONS_H
Definition: exceptions.h:14
Definition: exceptions.h:8
Definition: exceptions.h:21
Definition: exception.h:10