39 #include <pcl/pcl_config.h>
50 #if defined _WIN32 && defined _MSC_VER && !defined __PRETTY_FUNCTION__
51 #define __PRETTY_FUNCTION__ __FUNCTION__
55 #define THROW_OPENNI_EXCEPTION(format,...) throwOpenNIException( __PRETTY_FUNCTION__, __FILE__, __LINE__, format , ##__VA_ARGS__ )
78 OpenNIException (
const std::string& function_name,
const std::string& file_name,
unsigned line_number,
const std::string& message) noexcept;
96 const
char*
what () const noexcept override;
131 static char msg[1024];
134 vsprintf (msg,
format, args);
~OpenNIException() noexcept override
virtual Destructor that never throws an exception
OpenNIException(const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message) noexcept
Constructor.
const std::string & getFileName() const noexcept
std::string function_name_
unsigned getLineNumber() const noexcept
const char * what() const noexcept override
virtual method, derived from std::exception
std::string message_long_
const std::string & getFunctionName() const noexcept
void throwOpenNIException(const char *function_name, const char *file_name, unsigned line_number, const char *format,...)
inline function used by the macro THROW_OPENNI_EXCEPTION to create an instance of OpenNIException wit...