42#include <boost/current_function.hpp>
49#define PCL_THROW_EXCEPTION(ExceptionName, message) \
51 std::ostringstream s; \
53 throw ExceptionName(s.str(), __FILE__, BOOST_CURRENT_FUNCTION, __LINE__); \
68 const char* file_name =
nullptr,
108 const char* file_name,
116 if (file_name !=
nullptr)
118 sstream <<
"in " << file_name <<
" ";
140 const char* file_name =
nullptr,
154 const char* file_name =
nullptr,
169 const char* file_name =
nullptr,
183 const char* file_name =
nullptr,
197 const char* file_name =
nullptr,
212 const char* file_name =
nullptr,
226 const char* file_name =
nullptr,
236 const char* file_name =
nullptr,
246 const char* file_name =
nullptr,
259 const char* file_name =
nullptr,
An exception that is thrown when the arguments number or type is wrong/unhandled.
BadArgumentException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
ComputeFailedException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
Iterator class for point clouds with or without given indices.
An exception that is thrown during an IO error (typical read/write errors)
IOException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
An exception thrown when init can not be performed should be used in all the PCLBase class inheritant...
InitFailedException(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 a PCLPointCloud2 message cannot be converted into a PCL type.
InvalidConversionException(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 a sample consensus model doesn't have the correct number of samples ...
InvalidSACModelTypeException(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 a PointCloud is not dense but is attempted to be used as dense.
IsNotDenseException(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 the kernel size is too small.
KernelWidthTooSmallException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
A base class for all pcl exceptions which inherits from std::runtime_error.
const char * getFileName() const
PCLException(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)
const char * getFunctionName() const
const char * function_name_
unsigned getLineNumber() const
const char * detailedMessage() const
UnhandledPointTypeException(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 an organized point cloud is needed but not provided.
UnorganizedPointCloudException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)