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

General exception class. More...

#include <pcl/io/openni_camera/openni_exception.h>

+ Inheritance diagram for openni_wrapper::OpenNIException:
+ Collaboration diagram for openni_wrapper::OpenNIException:

Public Member Functions

 OpenNIException (const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message) noexcept
 Constructor. More...
 
 ~OpenNIException () noexcept override
 virtual Destructor that never throws an exception More...
 
OpenNIExceptionoperator= (const OpenNIException &exception) noexcept
 Assignment operator to allow copying the message of another exception variable. More...
 
const char * what () const noexcept override
 virtual method, derived from std::exception More...
 
const std::string & getFunctionName () const noexcept
 
const std::string & getFileName () const noexcept
 
unsigned getLineNumber () const noexcept
 

Protected Attributes

std::string function_name_
 
std::string file_name_
 
unsigned line_number_
 
std::string message_
 
std::string message_long_
 

Detailed Description

General exception class.

Author
Suat Gedikli
Date
02.january 2011

Definition at line 67 of file openni_exception.h.

Constructor & Destructor Documentation

◆ OpenNIException()

openni_wrapper::OpenNIException::OpenNIException ( const std::string &  function_name,
const std::string &  file_name,
unsigned  line_number,
const std::string &  message 
)
noexcept

Constructor.

Note
use the MACRO THROW_OPENNI_EXCEPTION, that takes care about the parameters function_name, file_name and line_number
Parameters
[in]function_namethe function in which this exception was created.
[in]file_namethe file name in which this exception was created.
[in]line_numberthe line number where this exception was created.
[in]messagethe message of the exception

Referenced by openni_wrapper::throwOpenNIException().

◆ ~OpenNIException()

openni_wrapper::OpenNIException::~OpenNIException ( )
overridenoexcept

virtual Destructor that never throws an exception

Member Function Documentation

◆ getFileName()

const std::string& openni_wrapper::OpenNIException::getFileName ( ) const
noexcept
Returns
the filename in which the exception was created.

◆ getFunctionName()

const std::string& openni_wrapper::OpenNIException::getFunctionName ( ) const
noexcept
Returns
the function name in which the exception was created.

◆ getLineNumber()

unsigned openni_wrapper::OpenNIException::getLineNumber ( ) const
noexcept
Returns
the line number where the exception was created.

◆ operator=()

OpenNIException& openni_wrapper::OpenNIException::operator= ( const OpenNIException exception)
noexcept

Assignment operator to allow copying the message of another exception variable.

Parameters
[in]exceptionleft hand side
Returns

◆ what()

const char* openni_wrapper::OpenNIException::what ( ) const
overridenoexcept

virtual method, derived from std::exception

Returns
the message of the exception.

Member Data Documentation

◆ file_name_

std::string openni_wrapper::OpenNIException::file_name_
protected

Definition at line 114 of file openni_exception.h.

◆ function_name_

std::string openni_wrapper::OpenNIException::function_name_
protected

Definition at line 113 of file openni_exception.h.

◆ line_number_

unsigned openni_wrapper::OpenNIException::line_number_
protected

Definition at line 115 of file openni_exception.h.

◆ message_

std::string openni_wrapper::OpenNIException::message_
protected

Definition at line 116 of file openni_exception.h.

◆ message_long_

std::string openni_wrapper::OpenNIException::message_long_
protected

Definition at line 117 of file openni_exception.h.


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