/*========================================================================= Program: bbtk Module: $RCSfile: bbtkException.h,v $ Language: C++ Date: $Date: 2008/01/22 15:02:00 $ Version: $Revision: 1.1.1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ /** * \file * \brief class Exception:generic class for throwing any exception (header) * * Long description: */ /** * \class bbtk::Exception * \brief class Exception : generic class for throwing any exception * * Long description: */ #ifndef __bbtkException_h__ #define __bbtkException_h__ #include "bbtkSystem.h" #include namespace bbtk { inline std::string bbGetObjectDescription() { return(""); } class BBTK_EXPORT Exception : public std::exception { public: Exception(const std::string& object, const std::string& file, const std::string& message) throw() : mObject(object), mFile(file), mMessage(message) {} ~Exception() throw() {} void Print() throw() { std::cerr << "* ERROR : " << mMessage < 0) { std::cerr << "* OBJECT : " <