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

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

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

◆ VectorException() [1/2]

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.

◆ VectorException() [2/2]

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

Definition at line 69 of file VectorExceptions.h.

◆ ~VectorException()

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

Definition at line 77 of file VectorExceptions.h.

Member Function Documentation

◆ getVector()

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

Definition at line 80 of file VectorExceptions.h.

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

◆ operator=()

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

◆ 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

◆ message_

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

Definition at line 61 of file Exceptions.h.

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

◆ vect_

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

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