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;
96 throwIOException (
const char*
function,
const char* file,
unsigned line,
const char* format, ...)
98 static char msg[1024];
100 va_start (args, format);
101 vsnprintf (msg, 1024, format, args);
IOException(const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message)
IOException & operator=(const IOException &exception)
const char * what() const noexcept override
std::string function_name_
General IO exception class.
std::string message_long_
unsigned getLineNumber() const
void throwIOException(const char *function, const char *file, unsigned line, const char *format,...)
~IOException() noexcept override
const std::string & getFunctionName() const
const std::string & getFileName() const