/** @file * $Source: /home/cvspamela/yoda/event/Exception.h,v $ * $Id: Exception.h,v 1.6 2004/03/16 10:18:28 nagni Exp $ * $Author: nagni $ * * Header file for the exceptions of Pamela. */ #include #include namespace pamela { class Exception: public std::exception { private: std::string Name; public: Exception(std::string name): Name(name) {} virtual ~Exception () throw(){ } virtual const char* what () const throw () { return Name.c_str(); } }; }