39 #ifndef VP_EXCEPTION_H
40 #define VP_EXCEPTION_H
42 #include <visp3/core/vpConfig.h>
80 vpException(
int code,
const char *format, va_list args);
95 #if (VISP_CXX_STANDARD == VISP_CXX_STANDARD_98)
113 const std::string &getStringMessage()
const;
119 const char *getMessage()
const;
127 const char *what()
const throw();
133 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, const
vpException &art);
143 void setMessage(const
char *format, va_list args);
error that can be emitted by ViSP classes.
@ cannotUseConstructorError
constructor error
@ badValue
Used to indicate that a value is not in the allowed range.
@ functionNotImplementedError
Function not implemented.
@ dimensionError
Bad dimension.
@ memoryFreeError
Memory free error.
@ notImplementedError
Not implemented.
@ memoryAllocationError
Memory allocation error.
@ divideByZeroError
Division by zero.