bpp-seq  2.1.0
 All Classes Namespaces Files Functions Variables Friends Pages
bpp::AlphabetException Class Reference

The alphabet exception base class. More...

#include <Bpp/Seq/Alphabet/AlphabetExceptions.h>

+ Inheritance diagram for bpp::AlphabetException:
+ Collaboration diagram for bpp::AlphabetException:

Public Member Functions

 AlphabetException (const std::string &text, const Alphabet *alpha=0)
 Build a new AlphabetException object. More...
 
 AlphabetException (const AlphabetException &ae)
 
AlphabetExceptionoperator= (const AlphabetException &ae)
 
virtual ~AlphabetException () throw ()
 
virtual const AlphabetgetAlphabet () const
 Get the alphabet that threw the exception. More...
 
const char * what () const
 

Protected Attributes

std::string message_
 

Private Attributes

const Alphabetalphabet_
 

Detailed Description

The alphabet exception base class.

See Also
Alphabet, Exception

Definition at line 58 of file AlphabetExceptions.h.

Constructor & Destructor Documentation

AlphabetException::AlphabetException ( const std::string &  text,
const Alphabet alpha = 0 
)

Build a new AlphabetException object.

Parameters
textA message to be passed to the exception hierarchy.
alphaA const pointer toward the alphabet that threw the exception.

Definition at line 52 of file AlphabetExceptions.cpp.

bpp::AlphabetException::AlphabetException ( const AlphabetException ae)
inline

Definition at line 73 of file AlphabetExceptions.h.

virtual bpp::AlphabetException::~AlphabetException ( ) throw ()
inlinevirtual

Definition at line 81 of file AlphabetExceptions.h.

Member Function Documentation

virtual const Alphabet* bpp::AlphabetException::getAlphabet ( ) const
inlinevirtual

Get the alphabet that threw the exception.

Returns
a const pointer toward the alphabet.

Definition at line 89 of file AlphabetExceptions.h.

References alphabet_.

AlphabetException& bpp::AlphabetException::operator= ( const AlphabetException ae)
inline

Definition at line 74 of file AlphabetExceptions.h.

References alphabet_, and alphabet_.

Member Data Documentation

const Alphabet* bpp::AlphabetException::alphabet_
private

Definition at line 62 of file AlphabetExceptions.h.

Referenced by getAlphabet(), operator=(), and operator=().


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