/[PAMELA software]/yoda/event/Exception.h
ViewVC logotype

Annotation of /yoda/event/Exception.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2.0 - (hide annotations) (download)
Tue Sep 21 20:49:57 2004 UTC (20 years, 2 months ago) by kusanagi
Branch: MAIN
Changes since 1.1: +3 -3 lines
File MIME type: text/plain
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