yat  0.8.3pre
Exception.h
00001 #ifndef _theplu_yat_utility_exception_
00002 #define _theplu_yat_utility_exception_
00003 
00004 // $Id: Exception.h 2526 2011-07-25 02:03:35Z peter $
00005 
00006 /*
00007   Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
00008   Copyright (C) 2010, 2011 Peter Johansson
00009 
00010   This file is part of the yat library, http://dev.thep.lu.se/yat
00011 
00012   The yat library is free software; you can redistribute it and/or
00013   modify it under the terms of the GNU General Public License as
00014   published by the Free Software Foundation; either version 3 of the
00015   License, or (at your option) any later version.
00016 
00017   The yat library is distributed in the hope that it will be useful,
00018   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00020   General Public License for more details.
00021 
00022   You should have received a copy of the GNU General Public License
00023   along with yat. If not, see <http://www.gnu.org/licenses/>.
00024 */
00025 
00026 #include <stdexcept>
00027 #include <string>
00028 
00029 namespace theplu {
00030 namespace yat {
00031 namespace utility {
00032 
00033   
00034 
00038   class runtime_error : public std::runtime_error
00039   {
00040   public:
00046     runtime_error(std::string message);
00047   };
00048 
00049 
00053   class cmd_error : public runtime_error
00054   {
00055   public:
00061     cmd_error(std::string message);
00062   };
00063 
00064 
00071   class errno_error : public runtime_error
00072   {
00073   public:
00078     errno_error(std::string message);
00079   };
00080 
00087   class GSL_error : public runtime_error
00088   {
00089   public:
00093     GSL_error(std::string message);
00094 
00099     GSL_error(std::string message, int gsl_status);
00100   };
00101 
00102 
00109   class IO_error : public runtime_error
00110   {
00111   public:
00115     IO_error(std::string message);
00116   };
00117 
00118 }}} // of namespace utility, yat, and theplu
00119 
00120 #endif

Generated on Thu Dec 20 2012 03:12:58 for yat by  doxygen 1.8.0-20120409