00001 // This file may be redistributed and modified only under the terms of 00002 // the GNU Lesser General Public License (See COPYING for details). 00003 // Copyright (C) 2001 Al Riddoch 00004 00005 #ifndef ATLAS_EXCEPTION_H 00006 #define ATLAS_EXCEPTION_H 00007 00008 #include <string> 00009 #include <exception> 00010 00011 namespace Atlas { 00012 00015 class Exception : public std::exception 00016 { 00017 protected: 00018 std::string m_description; 00019 00020 public: 00021 Exception(const std::string & d = "UNKNOWN ERROR") : m_description(d) { } 00022 virtual ~Exception() throw (); 00023 const std::string & getDescription() const { 00024 return m_description; 00025 } 00026 virtual const char * what() const throw(); 00027 }; 00028 00029 } // namespace Atlas 00030 00031 #endif // ATLAS_EXCEPTION_H
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.