48 #include "visp/vpException.h"
55 : code (id), message ()
60 : code (id), message (msg)
65 : code (id), message ()
68 va_start(args, format);
74 : code (id), message ()
92 vsnprintf (buffer, 1024, format, args);
93 std::string msg(buffer);
103 return (this->
message) .c_str();
125 return (this->
message) .c_str();
137 VISP_EXPORT std::ostream &
140 os <<
"Error [" << error.
code <<
"]:\t" << error.
message << std::endl;
const char * getMessage(void)
int getCode(void)
send the object code
error that can be emited by ViSP classes.
const char * what() const
const std::string & getStringMessage(void)
send a reference (constant) related the error message (can be empty)
void setMessage(const char *format, va_list args)
Set the message container.
std::string message
Contains an error message (can be empty)
int code
Contains the error code, see the errorCodeEnum table for details.
vpException()
forbid the empty constructor (protected)