38 #include <pcl/pcl_config.h>
47 #if defined _WIN32 && defined _MSC_VER && !defined __PRETTY_FUNCTION__
48 #define __PRETTY_FUNCTION__ __FUNCTION__
52 #define THROW_IO_EXCEPTION(format,...) throwIOException( __PRETTY_FUNCTION__, __FILE__, __LINE__, format , ##__VA_ARGS__ )
66 const std::string& file_name,
68 const std::string& message);
76 what () const noexcept override;
98 static char msg[1024];
101 vsnprintf (msg, 1024,
format, args);
General IO exception class.
std::string message_long_
const char * what() const noexcept override
const std::string & getFunctionName() const
~IOException() noexcept override
unsigned getLineNumber() const
IOException(const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message)
const std::string & getFileName() const
std::string function_name_
void throwIOException(const char *function, const char *file, unsigned line, const char *format,...)