bpp-core  2.1.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 >:

List of all members.

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).

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 () [inline, virtual]

Definition at line 95 of file VectorExceptions.h.


Member Function Documentation

template<class T >
virtual const std::vector<T>* bpp::VectorException< T >::getVector ( ) const [inline, virtual, inherited]

Definition at line 80 of file VectorExceptions.h.

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

const char* bpp::Exception::what ( ) const throw () [inline, inherited]

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

Returns:
The message passed to the exception hierarchy.

Definition at line 86 of file Exceptions.h.

References bpp::Exception::message_.


Member Data Documentation

std::string bpp::Exception::message_ [protected, inherited]

Definition at line 60 of file Exceptions.h.

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

template<class T >
const std::vector<T>* bpp::VectorException< T >::vect_ [protected, inherited]

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