inconsistent_turns_exception.hpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. virtual ~inconsistent_turns_exception() throw()
  17. {}
  18. virtual char const* what() const throw()
  19. {
  20. return "Boost.Geometry Inconsistent Turns exception";
  21. }
  22. };
  23. }} // boost::geometry
  24. #endif // BOOST_GEOMETRY_OVERLAY_NO_THROW
  25. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_INCONSISTENT_TURNS_EXCEPTION_HPP