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

Annotation of /yoda/event/Exception.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jul 6 12:20:23 2004 UTC (20 years, 5 months ago) by kusanagi
Branch: MAIN
File MIME type: text/plain
Initial revision

1 kusanagi 1.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     }

  ViewVC Help
Powered by ViewVC 1.1.23