Classes | Namespaces | Defines
exceptions.h File Reference
#include <stdexcept>
#include <sstream>
#include <pcl/pcl_macros.h>
Include dependency graph for common/include/pcl/exceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pcl::ComputeFailedException
class  pcl::InitFailedException
 An exception thrown when init can not be performed should be used in all the PCLBase class inheritants. More...
class  pcl::InvalidConversionException
 An exception that is thrown when a PointCloud2 message cannot be converted into a PCL type. More...
class  pcl::InvalidSACModelTypeException
 An exception that is thrown when a sample consensus model doesn't have the correct number of samples defined in model_types.h. More...
class  pcl::IOException
 An exception that is thrown during an IO error (typical read/write errors) More...
class  pcl::IsNotDenseException
 An exception that is thrown when a PointCloud is not dense but is attemped to be used as dense. More...
class  pcl::KernelWidthTooSmallException
 An exception that is thrown when the kernel size is too small. More...
class  pcl::PCLException
 A base class for all pcl exceptions which inherits from std::runtime_error. More...
class  pcl::UnhandledPointTypeException
class  pcl::UnorganizedPointCloudException
 An exception that is thrown when an organized point cloud is needed but not provided. More...

Namespaces

namespace  pcl

Defines

#define PCL_THROW_EXCEPTION(ExceptionName, message)

Define Documentation

#define PCL_THROW_EXCEPTION (   ExceptionName,
  message 
)
Value:
{                                                           \
  std::ostringstream s;                                     \
  s << message;                                             \
  throw ExceptionName(s.str(), __FILE__, "", __LINE__);     \
}

PCL_THROW_EXCEPTION a helper macro to be used for throwing exceptions. This is an example on how to use: PCL_THROW_EXCEPTION(IOException, "encountred an error while opening " << filename << " PCD file");

Definition at line 237 of file common/include/pcl/exceptions.h.



pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:12