43 #include <boost/current_function.hpp> 50 #define PCL_THROW_EXCEPTION(ExceptionName, message) \ 52 std::ostringstream s; \ 54 throw ExceptionName(s.str(), __FILE__, BOOST_CURRENT_FUNCTION, __LINE__); \ 69 const char* file_name =
nullptr,
70 const char* function_name =
nullptr,
71 unsigned line_number = 0)
109 const char* file_name,
110 const char* function_name,
111 unsigned line_number)
113 std::ostringstream sstream;
114 if (function_name !=
nullptr)
115 sstream << function_name <<
" ";
117 if (file_name !=
nullptr)
119 sstream <<
"in " << file_name <<
" ";
120 if (line_number != 0)
121 sstream <<
"@ " << line_number <<
" ";
123 sstream <<
": " << error_description;
125 return (sstream.str ());
141 const char* file_name =
nullptr,
142 const char* function_name =
nullptr,
143 unsigned line_number = 0)
144 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
155 const char* file_name =
nullptr,
156 const char* function_name =
nullptr,
157 unsigned line_number = 0)
158 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
170 const char* file_name =
nullptr,
171 const char* function_name =
nullptr,
172 unsigned line_number = 0)
173 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
184 const char* file_name =
nullptr,
185 const char* function_name =
nullptr,
186 unsigned line_number = 0)
187 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
198 const char* file_name =
nullptr,
199 const char* function_name =
nullptr,
200 unsigned line_number = 0)
201 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
213 const char* file_name =
nullptr,
214 const char* function_name =
nullptr,
215 unsigned line_number = 0)
216 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
227 const char* file_name =
nullptr,
228 const char* function_name =
nullptr,
229 unsigned line_number = 0)
230 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
237 const char* file_name =
nullptr,
238 const char* function_name =
nullptr,
239 unsigned line_number = 0)
240 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
247 const char* file_name =
nullptr,
248 const char* function_name =
nullptr,
249 unsigned line_number = 0)
250 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
260 const char* file_name =
nullptr,
261 const char* function_name =
nullptr,
262 unsigned line_number = 0)
263 :
pcl::
PCLException (error_description, file_name, function_name, line_number) { }
An exception that is thrown when a sample consensus model doesn't have the correct number of samples ...
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 PointCloud is not dense but is attempted to be used as dense...
A base class for all pcl exceptions which inherits from std::runtime_error.
unsigned getLineNumber() const
An exception that is thrown when the arguments number or type is wrong/unhandled. ...
UnhandledPointTypeException(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 * detailedMessage() const
IsNotDenseException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
BadArgumentException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
InvalidSACModelTypeException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
const char * getFileName() const
const char * getFunctionName() const
An exception that is thrown when the kernel size is too small.
PCLException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
const char * function_name_
An exception thrown when init can not be performed should be used in all the PCLBase class inheritant...
An exception that is thrown during an IO error (typical read/write errors)
KernelWidthTooSmallException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
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 an organized point cloud is needed but not provided.
An exception that is thrown when a PCLPointCloud2 message cannot be converted into a PCL type...
ComputeFailedException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
IOException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
Defines all the PCL and non-PCL macros used.
UnorganizedPointCloudException(const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)