43 #include "visp3/core/vpException.h"
59 va_start(args, format);
78 vsnprintf(buffer, 1024, format, args);
79 std::string msg(buffer);
117 os <<
"Error [" << error.
code <<
"]:\t" << error.
message << std::endl;
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
error that can be emited by ViSP classes.
const std::string & getStringMessage() const
Send a reference (constant) related the error message (can be empty).
int code
Contains the error code, see the errorCodeEnum table for details.
vpException()
forbid the empty constructor (protected)
int getCode() const
Send the object code.
void setMessage(const char *format, va_list args)
Set the message container.
const char * getMessage() const
const char * what() const
std::string message
Contains an error message (can be empty)