123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #ifndef BOOST_GEOMETRY_CORE_EXCEPTION_HPP
- #define BOOST_GEOMETRY_CORE_EXCEPTION_HPP
- #include <exception>
- namespace boost { namespace geometry
- {
- class exception : public std::exception
- {
- public:
- char const* what() const noexcept override
- {
- return "Boost.Geometry exception";
- }
- };
- class invalid_input_exception : public geometry::exception
- {
- public:
- inline invalid_input_exception() {}
- char const* what() const noexcept override
- {
- return "Boost.Geometry Invalid-Input exception";
- }
- };
- class empty_input_exception : public geometry::invalid_input_exception
- {
- public:
- inline empty_input_exception() {}
- virtual char const* what() const noexcept
- {
- return "Boost.Geometry Empty-Input exception";
- }
- };
- class invalid_output_exception : public geometry::exception
- {
- public:
- inline invalid_output_exception() {}
- char const* what() const noexcept override
- {
- return "Boost.Geometry Invalid-Output exception";
- }
- };
- }}
- #endif
|