43 #ifndef __vpException_H
44 #define __vpException_H
51 #include <visp3/core/vpConfig.h>
84 void setMessage(
const char* format, va_list args);
106 vpException (
const int code,
const char* format, va_list args);
107 vpException (
const int code,
const char* format, ...);
108 vpException (
const int code,
const std::string & msg);
123 const std::string &getStringMessage (
void)
const;
126 const char *getMessage (
void)
const;
130 friend VISP_EXPORT std::ostream & operator << (std::ostream & os,
const vpException & art);
132 const char* what ()
const throw();
error that can be emited by ViSP classes.
std::string message
Contains an error message (can be empty)
int code
Contains the error code, see the errorCodeEnum table for details.
vpException()
forbid the empty constructor (protected)