Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Static Protected Member Functions | Protected Attributes
pcl::PCLException Class Reference

A base class for all pcl exceptions which inherits from std::runtime_error. More...

#include <pcl/exceptions.h>

+ Inheritance diagram for pcl::PCLException:
+ Collaboration diagram for pcl::PCLException:

Public Member Functions

 PCLException (const std::string &error_description, const char *file_name=nullptr, const char *function_name=nullptr, unsigned line_number=0)
 
const char * getFileName () const noexcept
 
const char * getFunctionName () const noexcept
 
unsigned getLineNumber () const noexcept
 
const char * detailedMessage () const noexcept
 

Static Protected Member Functions

static std::string createDetailedMessage (const std::string &error_description, const char *file_name, const char *function_name, unsigned line_number)
 

Protected Attributes

const char * file_name_
 
const char * function_name_
 
unsigned line_number_
 

Detailed Description

A base class for all pcl exceptions which inherits from std::runtime_error.

Author
Eitan Marder-Eppstein, Suat Gedikli, Nizar Sallem

Definition at line 66 of file exceptions.h.

Constructor & Destructor Documentation

◆ PCLException()

pcl::PCLException::PCLException ( const std::string &  error_description,
const char *  file_name = nullptr,
const char *  function_name = nullptr,
unsigned  line_number = 0 
)
inline

Definition at line 70 of file exceptions.h.

Member Function Documentation

◆ createDetailedMessage()

static std::string pcl::PCLException::createDetailedMessage ( const std::string &  error_description,
const char *  file_name,
const char *  function_name,
unsigned  line_number 
)
inlinestaticprotected

Definition at line 110 of file exceptions.h.

◆ detailedMessage()

const char* pcl::PCLException::detailedMessage ( ) const
inlinenoexcept

Definition at line 102 of file exceptions.h.

◆ getFileName()

const char* pcl::PCLException::getFileName ( ) const
inlinenoexcept

Definition at line 84 of file exceptions.h.

◆ getFunctionName()

const char* pcl::PCLException::getFunctionName ( ) const
inlinenoexcept

Definition at line 90 of file exceptions.h.

◆ getLineNumber()

unsigned pcl::PCLException::getLineNumber ( ) const
inlinenoexcept

Definition at line 96 of file exceptions.h.

Member Data Documentation

◆ file_name_

const char* pcl::PCLException::file_name_
protected

Definition at line 130 of file exceptions.h.

◆ function_name_

const char* pcl::PCLException::function_name_
protected

Definition at line 131 of file exceptions.h.

◆ line_number_

unsigned pcl::PCLException::line_number_
protected

Definition at line 132 of file exceptions.h.


The documentation for this class was generated from the following file: