Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
exception.h File Reference

Defines the different types of exceptions that 2geom can throw. More...

Go to the source code of this file.

Classes

class  Geom::Exception
 Base exception class, all 2geom exceptions should be derived from this one. More...
 
class  Geom::LogicalError
 
class  Geom::RangeError
 
class  Geom::NotImplemented
 
class  Geom::InvariantsViolation
 
class  Geom::NotInvertible
 
class  Geom::InfiniteSolutions
 
class  Geom::InfinitelyManySolutions
 
class  Geom::ContinuityError
 
struct  Geom::SVGPathParseError
 

Namespaces

namespace  Geom
 Various utility functions.
 

Detailed Description

Defines the different types of exceptions that 2geom can throw.

There are two main exception classes: LogicalError and RangeError. Logical errors are 2geom faults/bugs; RangeErrors are 'user' faults, e.g. invalid arguments to lib2geom methods. This way, the 'user' can distinguish between groups of exceptions ('user' is the coder that uses lib2geom)

Several macro's are defined for easily throwing exceptions (e.g. THROW_CONTINUITYERROR).

Definition in file exception.h.