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)
101 VP_EXPLICIT vpException(
int code);
113 const std::string &getStringMessage()
const;
119 const char *getMessage()
const;
127#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
128 const char *what() const VP_NOEXCEPT VP_OVERRIDE;
130 const char *what()
const throw();
137 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpException &art);
147 void setMessage(
const char *format, va_list args);
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
constructor error
@ badValue
Used to indicate that a value is not in the allowed range.
@ functionNotImplementedError
Function not implemented.
@ notInitialized
Used to indicate that a parameter is not initialized.
@ dimensionError
Bad dimension.
@ memoryFreeError
Memory free error.
@ notImplementedError
Not implemented.
@ memoryAllocationError
Memory allocation error.
@ divideByZeroError
Division by zero.
void setMessage(const char *format, va_list args)
Set the message container.
std::string message
Contains an error message (can be empty).
vpException(int code, const char *format, va_list args)