47 #ifndef __vpException_H
48 #define __vpException_H
55 #include <visp/vpConfig.h>
87 void setMessage(
const char* format, va_list args);
109 vpException (
const int code,
const char* format, va_list args);
110 vpException (
const int code,
const char* format, ...);
111 vpException (
const int code,
const std::string & msg);
124 const std::string &getStringMessage (
void);
127 const char *getMessage (
void);
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)