-
Notifications
You must be signed in to change notification settings - Fork 0
/
NonExistentCoordinateException.h
53 lines (34 loc) · 1.12 KB
/
NonExistentCoordinateException.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*! \file NonExistentCoordinateException.h
* \brief The declaration and definition of the NonExistentCoordinateException
* exception class.
* \author Christos Nitsas
* \date 2012
*/
#ifndef NON_EXISTENT_COORDINATE_EXCEPTION_H
#define NON_EXISTENT_COORDINATE_EXCEPTION_H
#include <exception>
/*!
* \weakgroup ParetoApproximator Everything needed for the Pareto set approximation algorithms.
* @{
*/
//! The namespace containing everything needed for the Pareto set approximation algorithms.
namespace pareto_approximator {
//! The namespace containing all the exception classes.
namespace exception_classes {
//! Exception thrown by Point::operator[]().
/*!
* An exception thrown when the requested Point coordinate does not exist.
*/
class NonExistentCoordinateException : public std::exception
{
public:
//! Return a simple char* message.
const char* what() const throw()
{
return "The requested coordinate does not exist. (out of bounds)";
}
};
} // namespace exception_classes
} // namespace pareto_approximator
/* @} */
#endif // NON_EXISTENT_COORDINATE_EXCEPTION_H