source/inc/numeric/exception.hxx

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  The Contents of this file are made available subject to
00004  *  the terms of GNU Lesser General Public License Version 2.1.
00005  *
00006  *
00007  *    GNU Lesser General Public License Version 2.1
00008  *    =============================================
00009  *    Copyright 2005 by Kohei Yoshida.
00010  *    1039 Kingsway Dr., Apex, NC 27502, USA
00011  *
00012  *    This library is free software; you can redistribute it and/or
00013  *    modify it under the terms of the GNU Lesser General Public
00014  *    License version 2.1, as published by the Free Software Foundation.
00015  *
00016  *    This library is distributed in the hope that it will be useful,
00017  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *    Lesser General Public License for more details.
00020  *
00021  *    You should have received a copy of the GNU Lesser General Public
00022  *    License along with this library; if not, write to the Free Software
00023  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024  *    MA  02111-1307  USA
00025  *
00026  ************************************************************************/
00027 
00028 #ifndef _SCSOLVER_NUMERIC_EXCEPTION_HXX_
00029 #define _SCSOLVER_NUMERIC_EXCEPTION_HXX_
00030 
00031 #include <exception>
00032 #include <string>
00033 
00034 namespace scsolver { namespace numeric {
00035 
00036 class Exception : public ::std::exception
00037 {
00038 public:
00039     explicit Exception(const char* msg);
00040     explicit Exception(const ::std::string& msg);
00041     virtual ~Exception() throw();
00042 
00043     virtual const char* what() const throw();
00044 
00045 private:
00046     ::std::string m_msg;
00047 };
00048 
00049 class ConstraintError : public ::std::exception
00050 {
00051 public:
00052         virtual const char* what() const throw();
00053 };
00054 
00055 class AssertionWrong : public ::std::exception
00056 {
00057 public:
00058         virtual const char* what() const throw();
00059 };
00060 
00061 class ModelInfeasible : public ::std::exception
00062 {
00063 public:
00064         virtual const char* what() const throw();
00065 };
00066 
00067 class MaxIterationReached : public ::std::exception
00068 {
00069 public:
00070         virtual const char* what() const throw();
00071 };
00072 
00073 class IterationTimedOut : public ::std::exception
00074 {
00075 public:
00076         virtual const char* what() const throw();
00077 };
00078 
00083 class UnboundedException : public ::std::exception
00084 {
00085 public:
00086     virtual const char * what() const throw();
00087 };
00088 
00089 }}
00090 
00091 
00092 #endif

Generated on Mon Jul 28 09:13:20 2008 for scsolver by  doxygen 1.5.3