General exception class.
More...
#include <pcl/io/openni_camera/openni_exception.h>
|
| | OpenNIException (const std::string &function_name, const std::string &file_name, unsigned line_number, const std::string &message) noexcept |
| | Constructor.
|
| | ~OpenNIException () noexcept override |
| | virtual Destructor that never throws an exception
|
| OpenNIException & | operator= (const OpenNIException &exception) noexcept |
| | Assignment operator to allow copying the message of another exception variable.
|
| const char * | what () const noexcept override |
| | virtual method, derived from std::exception
|
| const std::string & | getFunctionName () const noexcept |
| const std::string & | getFileName () const noexcept |
| unsigned | getLineNumber () const noexcept |
General exception class.
- Author
- Suat Gedikli
- Date
- 02.january 2011
Definition at line 67 of file openni_exception.h.
◆ 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_name | the function in which this exception was created. |
| [in] | file_name | the file name in which this exception was created. |
| [in] | line_number | the line number where this exception was created. |
| [in] | message | the message of the exception |
Referenced by operator=(), and openni_wrapper::throwOpenNIException().
◆ ~OpenNIException()
| openni_wrapper::OpenNIException::~OpenNIException |
( |
| ) |
|
|
overridenoexcept |
virtual Destructor that never throws an exception
◆ getFileName()
| const std::string & openni_wrapper::OpenNIException::getFileName |
( |
| ) |
const |
|
noexcept |
◆ getFunctionName()
| const std::string & openni_wrapper::OpenNIException::getFunctionName |
( |
| ) |
const |
|
noexcept |
◆ getLineNumber()
| unsigned openni_wrapper::OpenNIException::getLineNumber |
( |
| ) |
const |
|
noexcept |
◆ operator=()
Assignment operator to allow copying the message of another exception variable.
- Parameters
-
| [in] | exception | left hand side |
- Returns
References OpenNIException().
◆ what()
| const char * openni_wrapper::OpenNIException::what |
( |
| ) |
const |
|
overridenoexcept |
virtual method, derived from std::exception
- Returns
- the message of the exception.
References what().
Referenced by what().
◆ file_name_
| std::string openni_wrapper::OpenNIException::file_name_ |
|
protected |
◆ function_name_
| std::string openni_wrapper::OpenNIException::function_name_ |
|
protected |
◆ line_number_
| unsigned openni_wrapper::OpenNIException::line_number_ |
|
protected |
◆ message_
| std::string openni_wrapper::OpenNIException::message_ |
|
protected |
◆ message_long_
| std::string openni_wrapper::OpenNIException::message_long_ |
|
protected |
The documentation for this class was generated from the following file: