37 #ifndef __OPENNI_EXCEPTION__ 38 #define __OPENNI_EXCEPTION__ 45 #if defined _WIN32 && defined _MSC_VER 46 # define __PRETTY_FUNCTION__ __FUNCTION__ 48 #define THROW_OPENNI_EXCEPTION(format,...) throwOpenNIException( __PRETTY_FUNCTION__, __FILE__, __LINE__, format , ##__VA_ARGS__ ) 61 OpenNIException (
const std::string& function_name,
const std::string& file_name,
unsigned line_number,
const std::string& message)
throw ();
64 virtual const char*
what ()
const throw ();
77 inline void throwOpenNIException (
const char*
function,
const char* file,
unsigned line,
const char* format, ...)
79 static char msg[1024];
81 va_start (args, format);
82 vsprintf (msg, format, args);
const std::string & getFunctionName() const
std::string message_long_
virtual const char * what() const
virtual ~OpenNIException()
void throwOpenNIException(const char *function, const char *file, unsigned line, const char *format,...)
OpenNIException & operator=(const OpenNIException &exception)
std::string function_name_
const std::string & getFileName() const
OpenNIException(const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message)
unsigned getLineNumber() const