/** \file Exception classes for geometry \author Lukas Nellen \version $Id$ \date 19 May 2003 */ #ifndef _utl_GeometryException_h_ #define _utl_GeometryException_h_ static const char CVSId_utl_GeometryException[] = "$Id$"; #include namespace utl { /** \class GeometryException GeometryException.h utl/GeometryException.h \brief General exception class for the Geometry package. This is the base class for all exceptions thrown by the Geometry package. */ class GeometryException : public AugerException { public: /// Construct GeometryException with error message GeometryException(const std::string& message = std::string()) : AugerException(message) { } /// Provide verbose exception name virtual std::string GetExceptionName() const { return "Generic exception in the Geometry package"; } }; /** \class CoordinateSystemException GeometryException.h utl/GeometryException.h \brief Exception dealing with coordinate systems */ class CoordinateSystemException : public GeometryException { public: /// Construct CoordinateSystemException with error message CoordinateSystemException(const std::string& message = std::string()) : GeometryException(message) { } /// Provide verbose exception name virtual std::string GetExceptionName() const { return "Exception in coordinate system handling"; } }; } // utl #endif // _utl_GeometryException_h_ // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: