bpp-core  2.4.0
bpp::EmptyVectorException< T > Class Template Reference

Exception thrown when an empty vector was found. More...

#include <Bpp/Numeric/VectorExceptions.h>

+ Inheritance diagram for bpp::EmptyVectorException< T >:
+ Collaboration diagram for bpp::EmptyVectorException< T >:

Public Member Functions

 EmptyVectorException (const std::string &text, const std::vector< T > *vect=nullptr)
 
const std::vector< T > * getVector () const
 
const char * what () const noexceptoverride
 Method to get the message of the exception (STL method redefinition). More...
 
const std::string & message () const noexcept
 Access the message as a std::string. More...
 

Protected Attributes

const std::vector< T > * vect_
 

Detailed Description

template<class T>
class bpp::EmptyVectorException< T >

Exception thrown when an empty vector was found.

Definition at line 72 of file VectorExceptions.h.

Constructor & Destructor Documentation

template<class T >
bpp::EmptyVectorException< T >::EmptyVectorException ( const std::string &  text,
const std::vector< T > *  vect = nullptr 
)
inline

Definition at line 75 of file VectorExceptions.h.

Member Function Documentation

template<class T >
const std::vector<T>* bpp::VectorException< T >::getVector ( ) const
inlineinherited

Definition at line 67 of file VectorExceptions.h.

References bpp::VectorException< T >::vect_.

const std::string & bpp::Exception::message ( ) const
noexceptinherited

Access the message as a std::string.

Definition at line 57 of file Exceptions.cpp.

References bpp::Exception::message_.

const char * bpp::Exception::what ( ) const
overridenoexceptinherited

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

Returns
The message passed to the exception hierarchy.

Definition at line 56 of file Exceptions.cpp.

References bpp::Exception::message_.

Member Data Documentation

template<class T >
const std::vector<T>* bpp::VectorException< T >::vect_
protectedinherited

Definition at line 58 of file VectorExceptions.h.

Referenced by bpp::VectorException< T >::getVector().


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