bpp-core  2.3.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=0)
 
virtual ~EmptyVectorException () throw ()
 
virtual const std::vector< T > * getVector () const
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

const std::vector< T > * vect_
 
std::string message_
 

Detailed Description

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

Exception thrown when an empty vector was found.

Definition at line 87 of file VectorExceptions.h.

Constructor & Destructor Documentation

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

Definition at line 92 of file VectorExceptions.h.

template<class T >
virtual bpp::EmptyVectorException< T >::~EmptyVectorException ( )
throw (
)
inlinevirtual

Definition at line 95 of file VectorExceptions.h.

Member Function Documentation

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

Definition at line 80 of file VectorExceptions.h.

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

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 88 of file Exceptions.h.

Member Data Documentation

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

Definition at line 62 of file Exceptions.h.

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

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