39 #ifndef _vpException_h_
40 #define _vpException_h_
42 #include <visp3/core/vpConfig.h>
68 void setMessage(
const char *format, va_list args);
92 vpException(
int code,
const char *format, va_list args);
112 #if VISP_CXX_STANDARD > VISP_CXX_STANDARD_98
128 const std::string &getStringMessage()
const;
134 const char *getMessage()
const;
142 const char *what()
const throw();
148 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os, const
vpException &art);
error that can be emitted by ViSP classes.
int code
Contains the error code, see the errorCodeEnum table for details.
vpException()
forbid the empty constructor (protected)
@ cannotUseConstructorError
Contructor 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.
std::string message
Contains an error message (can be empty)