43 #include "visp3/core/vpException.h" 59 va_start(args, format);
81 vsnprintf(buffer, 1024, format, args);
82 std::string msg(buffer);
120 os <<
"Error [" << error.
code <<
"]:\t" << error.
message << std::endl;
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpException &art)
Print the error structure.
int getCode(void)
Send the object code.
error that can be emited by ViSP classes.
const char * what() const
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.
const char * getMessage(void) const
vpException()
forbid the empty constructor (protected)
const std::string & getStringMessage(void) const
Send a reference (constant) related the error message (can be empty).