 Parent Directory
|
 Parent Directory
|  Revision Log
 Revision Log
Major release
| 1 | kusanagi | 1.1 | /** @file | 
| 2 | kusanagi | 2.0 | * $Source: /home/cvsmanager/yoda/event/Exception.h,v $ | 
| 3 | * $Id: Exception.h,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ | ||
| 4 | * $Author: kusanagi $ | ||
| 5 | kusanagi | 1.1 | * | 
| 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 | } | 
| ViewVC Help | |
| Powered by ViewVC 1.1.23 |