/*LICENSE_START*/ /* * Copyright 1995-2002 Washington University School of Medicine * * http://brainmap.wustl.edu * * This file is part of CARET. * * CARET is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * CARET is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with CARET; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ /*LICENSE_END*/ #ifndef __FILE_EXCEPTION_H__ #define __FILE_EXCEPTION_H__ #include #include class StatisticException; /// Exception involving data files class FileException : public std::exception { public: // Constructor FileException(const QString& msg); /// Constructor FileException(const QString& filename, const QString& msg); // Constructor FileException(const StatisticException& se); /// Destructor virtual ~FileException() throw(); /// get description of exception virtual QString whatQString() const throw(); protected: /// Description of the exception QString exceptionDescription; private: /// get description of exception (private to prevent its use) virtual const char* what() const throw() { return ""; } }; #endif // __FILE_EXCEPTION_H__