summaryrefslogtreecommitdiffstats
path: root/src/2geom/exception.h
diff options
context:
space:
mode:
authormcecchetti <mcecchetti@users.sourceforge.net>2008-05-20 22:29:23 +0000
committermcecchetti <mcecchetti@users.sourceforge.net>2008-05-20 22:29:23 +0000
commit3cd345ae277f34e13420e4f7849f4e030b2437d6 (patch)
tree57c75c18d29f90526d9ce69e9aa72095ca3261bb /src/2geom/exception.h
parentFix snapping for constrained translation in the selector tool (diff)
downloadinkscape-3cd345ae277f34e13420e4f7849f4e030b2437d6.tar.gz
inkscape-3cd345ae277f34e13420e4f7849f4e030b2437d6.zip
synchronization with 2geom library
(bzr r5723)
Diffstat (limited to 'src/2geom/exception.h')
-rw-r--r--src/2geom/exception.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/2geom/exception.h b/src/2geom/exception.h
index 2749ec63a..6151f7a57 100644
--- a/src/2geom/exception.h
+++ b/src/2geom/exception.h
@@ -99,6 +99,13 @@ public:
};
#define THROW_NOTINVERTIBLE(i) throw(NotInvertible(__FILE__, __LINE__))
+class InfiniteSolutions : public RangeError {
+public:
+ InfiniteSolutions(const char *file, const int line)
+ : RangeError("There are infinite solutions", file, line) {}
+};
+#define THROW_INFINITESOLUTIONS(i) throw(InfiniteSolutions(__FILE__, __LINE__))
+
class ContinuityError : public RangeError {
public:
ContinuityError(const char *file, const int line)