summaryrefslogtreecommitdiff
path: root/boost/geometry/core/exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/core/exception.hpp')
-rw-r--r--boost/geometry/core/exception.hpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/boost/geometry/core/exception.hpp b/boost/geometry/core/exception.hpp
index 21abbd577b..72bc598b2a 100644
--- a/boost/geometry/core/exception.hpp
+++ b/boost/geometry/core/exception.hpp
@@ -4,8 +4,8 @@
// Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
-// This file was modified by Oracle on 2015.
-// Modifications copyright (c) 2015 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2015, 2017.
+// Modifications copyright (c) 2015-2017 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
@@ -83,6 +83,25 @@ public:
}
};
+/*!
+\brief Invalid Output Exception
+\ingroup core
+\details The invalid_output_exception is thrown if valid output cannot be
+ generated by a function even if arguments are valid, e.g. union of
+ geographic polygons covering more than half of the area of the globe.
+ */
+class invalid_output_exception : public geometry::exception
+{
+public:
+
+ inline invalid_output_exception() {}
+
+ virtual char const* what() const throw()
+ {
+ return "Boost.Geometry Invalid-Output exception";
+ }
+};
+
}} // namespace boost::geometry