exceptions.h File Reference

#include <stdexcept>
#include <sstream>
#include <pcl/pcl_macros.h>
Include dependency graph for exceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  pcl::PCLException
 A base class for all pcl exceptions which inherits from std::runtime_error. More...
class  pcl::InvalidConversionException
 An exception that is thrown when a PointCloud2 message cannot be converted into a PCL type. 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::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::InitFailedException
 An exception thrown when init can not be performed should be used in all the PCLBase class inheritants. More...
class  pcl::UnorganizedPointCloudException
 An exception that is thrown when an organized point cloud is needed but not provided. More...
class  pcl::KernelWidthTooSmallException
 An exception that is thrown when the kernel size is too small. More...
class  pcl::UnhandledPointTypeException
class  pcl::ComputeFailedException

Namespaces

namespace  pcl

Defines

#define PCL_THROW_EXCEPTION(ExceptionName, message)
 PCL_THROW_EXCEPTION a helper macro to be used for throwing exceptions.

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 exceptions.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2012 for Point Cloud Library (PCL) by  doxygen 1.6.1