39#include "visp3/core/vpException.h"
50 va_start(args, format);
59 char buffer[FILENAME_MAX];
60 vsnprintf(buffer, FILENAME_MAX, format, args);
61 std::string msg(buffer);
71#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
79 os <<
"Error [" << error.code <<
"]:\t" << error.message << std::endl;
const char * what() const VP_NOEXCEPT VP_OVERRIDE
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
std::string message
Contains an error message (can be empty).
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpException &art)
vpException(int code, const char *format, va_list args)