bpp-seq  2.2.0
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...
 

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() [1/2]

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.

◆ AlphabetException() [2/2]

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

Definition at line 73 of file AlphabetExceptions.h.

◆ ~AlphabetException()

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

Definition at line 81 of file AlphabetExceptions.h.

Member Function Documentation

◆ getAlphabet()

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

◆ operator=()

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

Definition at line 74 of file AlphabetExceptions.h.

References alphabet_.

Member Data Documentation

◆ alphabet_

const Alphabet* bpp::AlphabetException::alphabet_
private

Definition at line 62 of file AlphabetExceptions.h.

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


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