Boost.Real  1.0.0
Boost.Real numerical data type for real numbers representation using range arithmetic.
real_exception.hpp
1 #ifndef BOOST_REAL_REAL_EXCEPTION_HPP
2 #define BOOST_REAL_REAL_EXCEPTION_HPP
3 
4 #include <exception>
5 
6 namespace boost {
7  namespace real {
8  struct precision_exception : public std::exception {
9 
10  const char * what () const throw () override {
11  return "The boost::real number precision is to slow to compare both numbers";
12  }
13  };
14 
15  struct none_operation_exception : public std::exception {
16 
17  const char * what () const throw () override {
18  return "The boost::real number operation cannot be NONE";
19  }
20  };
21 
22  struct invalid_representation_exception : public std::exception {
23 
24  const char * what () const throw () override {
25  return "The boost::real number method cannot be called for real number for the current representation";
26  }
27  };
28 
29  struct invalid_string_number_exception : public std::exception {
30 
31  const char * what () const throw () override {
32  return "The string passed to construct the boost::real number is invalid";
33  }
34  };
35  }
36 }
37 
38 #endif //BOOST_REAL_REAL_EXCEPTION_HPP
Definition: real_exception.hpp:8
Definition: real_exception.hpp:22
Definition: boundary.hpp:7
Definition: real_exception.hpp:15
Definition: real_exception.hpp:29