inconsistent_turns_exception.hpp 985 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2014-2015, Oracle and/or its affiliates.
  3. // Licensed under the Boost Software License version 1.0.
  4. // http://www.boost.org/users/license.html
  5. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  6. #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_INCONSISTENT_TURNS_EXCEPTION_HPP
  7. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_INCONSISTENT_TURNS_EXCEPTION_HPP
  8. #if ! defined(BOOST_GEOMETRY_OVERLAY_NO_THROW)
  9. #include <boost/geometry/core/exception.hpp>
  10. namespace boost { namespace geometry
  11. {
  12. class inconsistent_turns_exception : public geometry::exception
  13. {
  14. public:
  15. inline inconsistent_turns_exception() {}
  16. char const* what() const noexcept override
  17. {
  18. return "Boost.Geometry Inconsistent Turns exception";
  19. }
  20. };
  21. }} // boost::geometry
  22. #endif // BOOST_GEOMETRY_OVERLAY_NO_THROW
  23. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_INCONSISTENT_TURNS_EXCEPTION_HPP