74 #ifndef SLIP_ERROR_HPP
75 #define SLIP_ERROR_HPP
109 std::string package_name;
110 std::string function_name;
116 slip_exception(
const std::string&,
const std::string&,
const std::string&)
throw ();
122 virtual const char*
what()
const throw ();
124 std::string
what_str()
const throw ();
127 return this->function_name;
131 this->function_name = function_name;
135 return this->message;
139 this->message = message;
147 this->package_name = package_name;
166 : std::exception(), package_name(), function_name(), message(), label(-1) {
170 : std::exception(), package_name(p_name), function_name(f_name), message(mess), label(0) {
174 : package_name(orig.package_name), function_name(orig.function_name), message(orig.message), label(orig.label) {
181 this->package_name = orig.package_name;
182 this->function_name = orig.function_name;
183 this->message = orig.message;
184 this->label = orig.label;
189 std::string what_mess;
190 what_mess += package_name;
192 what_mess += function_name;
194 what_mess += message;
195 return what_mess.c_str();
199 std::string what_mess;
200 what_mess += package_name;
202 what_mess += function_name;
204 what_mess += message;
209 #endif //SLIP_ERROR_HPP
virtual slip_exception & operator=(const slip_exception &)
const std::string BAD_DIMENSION
const std::string & getMessage() const
void setMessage(std::string message)
const std::string FILE_WRITE_ERROR
standard exception extension name have been changed to eliminate conflicts with QT ...
const int & getLabel() const
const std::string FILE_OPEN_ERROR
const std::string & getFunction_name() const
const std::string SINGULAR_MATRIX_ERROR
const std::string & getPackage_name() const
void setLabel(const int &label)
const std::string GRID_STEP_ERROR
const std::string GRID_INIT_POINT_ERROR
virtual ~slip_exception()
const std::string POSITIVE_DEFINITE_MATRIX_ERROR
void setFunction_name(std::string function_name)
virtual const char * what() const
const std::string BAD_PARAMETER
void setPackage_name(std::string package_name)
std::string what_str() const
const std::string CROSSCORRELATION_BAD_ALGO
const std::string FILE_READ_ERROR