bpp-core  2.2.0
bpp::DimensionException Class Reference

Exception thrown when a dimension problem occured. More...

#include <Bpp/Numeric/VectorExceptions.h>

+ Inheritance diagram for bpp::DimensionException:
+ Collaboration diagram for bpp::DimensionException:

Public Member Functions

 DimensionException (const std::string &text, size_t dimension, size_t correctDimension)
 
virtual ~DimensionException () throw ()
 
virtual size_t getDimension () const
 
virtual size_t getCorrectDimension () const
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

std::string message_
 

Private Attributes

size_t dimension_
 
size_t correctDimension_
 

Detailed Description

Exception thrown when a dimension problem occured.

Definition at line 101 of file VectorExceptions.h.

Constructor & Destructor Documentation

◆ DimensionException()

bpp::DimensionException::DimensionException ( const std::string &  text,
size_t  dimension,
size_t  correctDimension 
)
inline

Definition at line 109 of file VectorExceptions.h.

◆ ~DimensionException()

virtual bpp::DimensionException::~DimensionException ( )
throw (
)
inlinevirtual

Definition at line 114 of file VectorExceptions.h.

Member Function Documentation

◆ getCorrectDimension()

virtual size_t bpp::DimensionException::getCorrectDimension ( ) const
inlinevirtual

Definition at line 118 of file VectorExceptions.h.

References correctDimension_.

◆ getDimension()

virtual size_t bpp::DimensionException::getDimension ( ) const
inlinevirtual

Definition at line 117 of file VectorExceptions.h.

References dimension_.

◆ what()

const char* bpp::Exception::what ( ) const
throw (
)
inlineinherited

Method to get the message of the exception (STL method redefinition).

Returns
The message passed to the exception hierarchy.

Definition at line 87 of file Exceptions.h.

References bpp::Exception::message_.

Member Data Documentation

◆ correctDimension_

size_t bpp::DimensionException::correctDimension_
private

Definition at line 106 of file VectorExceptions.h.

Referenced by getCorrectDimension().

◆ dimension_

size_t bpp::DimensionException::dimension_
private

Definition at line 105 of file VectorExceptions.h.

Referenced by getDimension().

◆ message_

std::string bpp::Exception::message_
protectedinherited

Definition at line 61 of file Exceptions.h.

Referenced by bpp::Exception::what().


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