Atlas-C++
Exception.h
1 // This file may be redistributed and modified only under the terms of
2 // the GNU Lesser General Public License (See COPYING for details).
3 // Copyright (C) 2001 Al Riddoch
4 
5 // $Id$
6 
7 #ifndef ATLAS_EXCEPTION_H
8 #define ATLAS_EXCEPTION_H
9 
10 #include <string>
11 #include <exception>
12 
13 namespace Atlas {
14 
17 class Exception : public std::exception
18 {
19  protected:
20  std::string m_description;
21 
22  public:
23  Exception(const std::string & d = "UNKNOWN ERROR") : m_description(d) { }
24  virtual ~Exception();
25  const std::string & getDescription() const {
26  return m_description;
27  }
28  virtual const char * what() const throw();
29 };
30 
31 } // namespace Atlas
32 
33 #endif // ATLAS_EXCEPTION_H
Atlas::Exception
Base class for all exceptions thrown by Atlas-C++.
Definition: Exception.h:18
Atlas
The Atlas namespace.
Definition: Bridge.h:20

Copyright 2000-2004 the respective authors.

This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.