44 #include "visp3/core/vpException.h"
51 : code (id), message ()
56 : code (id), message (msg)
61 : code (id), message ()
64 va_start(args, format);
70 : code (id), message ()
88 vsnprintf (buffer, 1024, format, args);
89 std::string msg(buffer);
99 return (this->
message) .c_str();
121 return (this->
message) .c_str();
133 VISP_EXPORT std::ostream &
136 os <<
"Error [" << error.
code <<
"]:\t" << error.
message << std::endl;
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
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
vpException()
forbid the empty constructor (protected)
const std::string & getStringMessage(void) const
Send a reference (constant) related the error message (can be empty).