bpp-core  2.1.0
bpp::VectorException< T > Class Template Reference

General Exception dealing with vectors. More...

#include <Bpp/Numeric/VectorExceptions.h>

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

List of all members.

Public Member Functions

 VectorException (const std::string &text, const std::vector< T > *vect=0)
 VectorException (const VectorException &ve)
VectorExceptionoperator= (const VectorException &ve)
virtual ~VectorException () 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::VectorException< T >

General Exception dealing with vectors.

Definition at line 57 of file VectorExceptions.h.


Constructor & Destructor Documentation

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

Definition at line 65 of file VectorExceptions.h.

template<class T >
bpp::VectorException< T >::VectorException ( const VectorException< T > &  ve) [inline]

Definition at line 69 of file VectorExceptions.h.

template<class T >
virtual bpp::VectorException< T >::~VectorException ( ) throw () [inline, virtual]

Definition at line 77 of file VectorExceptions.h.


Member Function Documentation

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

Definition at line 80 of file VectorExceptions.h.

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

template<class T >
VectorException& bpp::VectorException< T >::operator= ( const VectorException< T > &  ve) [inline]

Definition at line 70 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]

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