00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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