39#include "visp3/core/vpException.h"
49 va_start(args, format);
59 vsnprintf(buffer, 1024, format, args);
60 std::string msg(buffer);
72VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpException &error)
74 os <<
"Error [" << error.
code <<
"]:\t" << error.
message << std::endl;
error that can be emitted by ViSP classes.
const std::string & getStringMessage() const
int code
Contains the error code, see the errorCodeEnum table for details.
vpException()
forbid the empty constructor (protected)
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)