42#include <boost/current_function.hpp>
51#define POISSON_THROW_EXCEPTION(ExceptionName, message) \
53 std::ostringstream s; \
55 throw ExceptionName(s.str(), __FILE__, BOOST_CURRENT_FUNCTION, __LINE__); \
73 const char* file_name =
nullptr,
88 const char* file_name,
98 sstream <<
"in " << file_name <<
' ';
119 const char* file_name =
nullptr,
132 const char* file_name =
nullptr,
145 const char* file_name =
nullptr,
Iterator class for point clouds with or without given indices.
An exception that is thrown when the arguments number or type is wrong/unhandled.
PoissonBadArgumentException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
An exception that is thrown when initialization fails.
PoissonBadInitException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
A base class for all poisson exceptions which inherits from std::runtime_error.
const char * function_name_
PoissonException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
static std::string createDetailedMessage(const std::string &error_description, const char *file_name, const char *function_name, unsigned line_number)
An exception that is thrown when something goes wrong inside an openMP for loop.
PoissonOpenMPException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)