NanoStructures
1.0
DMFT solver for layered, strongly correlated nanostructures
Main Page
Related Pages
Modules
Classes
Files
File List
math
exceptions.h
1
#ifndef EXCEPTIONS_H
2
#define EXCEPTIONS_H
3
4
#include "../err/exception.h"
5
6
namespace
error {
7
namespace
math {
8
class
MathException
:
error::Exception
9
{
10
public
:
11
MathException
(std::string msg) :
error::Exception
(msg) {}
12
virtual
~
MathException
()
throw
() {}
13
};
14
class
OutOfBounds
:
MathException
15
{
16
public
:
17
OutOfBounds
() :
MathException
(
"Out of bounds."
) {}
18
OutOfBounds
(std::string msg) :
MathException
(msg) {}
19
virtual
~
OutOfBounds
()
throw
() {}
20
};
21
class
Nan
:
MathException
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
error::math::OutOfBounds
Definition:
exceptions.h:14
error::math::MathException
Definition:
exceptions.h:8
error::math::Nan
Definition:
exceptions.h:21
error::Exception
Definition:
exception.h:10
Generated on Sat Jun 28 2014 11:55:18 for NanoStructures by
1.8.6