openni_wrapper::OpenNIException Class Reference
[Module io]

General exception class. More...

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

List of all members.

Public Member Functions

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

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 68 of file openni_exception.h.


Constructor & Destructor Documentation

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

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
virtual openni_wrapper::OpenNIException::~OpenNIException (  )  throw () [virtual]

virtual Destructor that never throws an exception


Member Function Documentation

const std::string& openni_wrapper::OpenNIException::getFileName (  )  const throw ()
Returns:
the filename in which the exception was created.
const std::string& openni_wrapper::OpenNIException::getFunctionName (  )  const throw ()
Returns:
the function name in which the exception was created.
unsigned openni_wrapper::OpenNIException::getLineNumber (  )  const throw ()
Returns:
the line number where the exception was created.
OpenNIException& openni_wrapper::OpenNIException::operator= ( const OpenNIException exception  )  throw ()

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

Parameters:
[in] exception left hand side
Returns:
virtual const char* openni_wrapper::OpenNIException::what (  )  const throw () [virtual]

virtual method, derived from std::exception

Returns:
the message of the exception.

Member Data Documentation

Definition at line 115 of file openni_exception.h.

Definition at line 114 of file openni_exception.h.

Definition at line 116 of file openni_exception.h.

Definition at line 117 of file openni_exception.h.

Definition at line 118 of file openni_exception.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends