LibMultiSense
LibMultiSense Documentation
crl::multisense::details::utility::Exception Class Reference

#include <Exception.hh>

Inheritance diagram for crl::multisense::details::utility::Exception:
Collaboration diagram for crl::multisense::details::utility::Exception:

Public Member Functions

 Exception (const char *failureReason,...)
 Constructor. More...
 
 Exception (const std::string &failureReason)
 
 ~Exception () throw ()
 Destructor. More...
 
virtual const char * what () const throw ()
 Returns the reason for the exception. More...
 

Private Attributes

std::string reason
 

Detailed Description

Definition at line 108 of file Exception.hh.

Constructor & Destructor Documentation

◆ Exception() [1/2]

crl::multisense::details::utility::Exception::Exception ( const char *  failureReason,
  ... 
)

Constructor.

Initializes with the reason given.

Parameters
failureReasonThe reason for the exception.

Definition at line 89 of file Exception.cc.

◆ Exception() [2/2]

crl::multisense::details::utility::Exception::Exception ( const std::string &  failureReason)

Definition at line 109 of file Exception.cc.

◆ ~Exception()

crl::multisense::details::utility::Exception::~Exception ( )
throw (
)

Destructor.

Empty.

Definition at line 117 of file Exception.cc.

Member Function Documentation

◆ what()

const char * crl::multisense::details::utility::Exception::what ( ) const
throw (
)
virtual

Returns the reason for the exception.

Definition at line 125 of file Exception.cc.

Member Data Documentation

◆ reason

std::string crl::multisense::details::utility::Exception::reason
private

Definition at line 112 of file Exception.hh.


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