1 |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/Exception.h,v $ |
3 |
* $Id: Exception.h,v 1.6 2004/03/16 10:18:28 nagni Exp $ |
4 |
* $Author: nagni $ |
5 |
* |
6 |
* Header file for the exceptions of Pamela. |
7 |
*/ |
8 |
#include <exception> |
9 |
#include <string> |
10 |
|
11 |
namespace pamela { |
12 |
class Exception: public std::exception { |
13 |
private: |
14 |
std::string Name; |
15 |
public: |
16 |
Exception(std::string name): Name(name) {} |
17 |
virtual ~Exception () throw(){ } |
18 |
virtual const char* what () const throw () { return Name.c_str(); } |
19 |
}; |
20 |
} |