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 #include "numeric/exception.hxx"
00029
00030 namespace scsolver { namespace numeric {
00031
00032 Exception::Exception(const char* msg) :
00033 m_msg(msg)
00034 {
00035 }
00036
00037 Exception::Exception(const ::std::string& msg) :
00038 m_msg(msg)
00039 {
00040 }
00041
00042 Exception::~Exception() throw()
00043 {
00044 }
00045
00046 const char* Exception::what() const throw()
00047 {
00048 return m_msg.c_str();
00049 }
00050
00051 const char* ConstraintError::what() const throw()
00052 {
00053 return "Constraint error";
00054 }
00055
00056 const char* AssertionWrong::what() const throw()
00057 {
00058 return "Wrong assertion! (tell Kohei immediately)";
00059 }
00060
00061 const char* ModelInfeasible::what() const throw()
00062 {
00063 return "Model infeasible";
00064 }
00065
00066 const char* MaxIterationReached::what() const throw()
00067 {
00068 return "Maximum iteration reached";
00069 }
00070
00071 const char* IterationTimedOut::what() const throw()
00072 {
00073 return "Iteration timed out";
00074 }
00075
00076 const char* UnboundedException::what() const throw()
00077 {
00078 return "Unbounded exception";
00079 }
00080
00081 }}