43 #ifndef _vpException_h_
44 #define _vpException_h_
50 #include <visp3/core/vpConfig.h>
71 class VISP_EXPORT
vpException :
public std::exception
81 void setMessage(
const char *format, va_list args);
84 vpException() : code(notInitialized), message(
""){};
88 memoryAllocationError,
90 functionNotImplementedError,
92 cannotUseConstructorError,
101 vpException(
const int code,
const char *format, va_list args);
102 vpException(
const int code,
const char *format, ...);
103 vpException(
const int code,
const std::string &msg);
118 const std::string &getStringMessage(
void)
const;
121 const char *getMessage(
void)
const;
125 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpException &art);
127 const char *what()
const throw();