bpp-seq  2.2.0
bpp::BadIntException Class Reference

An alphabet exception thrown when trying to specify a bad int to the alphabet. More...

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

+ Inheritance diagram for bpp::BadIntException:
+ Collaboration diagram for bpp::BadIntException:

Public Member Functions

 BadIntException (int badInt, const std::string &text="", const Alphabet *alpha=0)
 Build a new BadIntException. More...
 
virtual ~BadIntException () throw ()
 
virtual int getBadInt () const
 Get the integer that threw the exception. More...
 
virtual const AlphabetgetAlphabet () const
 Get the alphabet that threw the exception. More...
 

Protected Attributes

int i_
 

Detailed Description

An alphabet exception thrown when trying to specify a bad int to the alphabet.

Definition at line 125 of file AlphabetExceptions.h.

Constructor & Destructor Documentation

◆ BadIntException()

BadIntException::BadIntException ( int  badInt,
const std::string &  text = "",
const Alphabet alpha = 0 
)

Build a new BadIntException.

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

Definition at line 66 of file AlphabetExceptions.cpp.

◆ ~BadIntException()

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

Definition at line 140 of file AlphabetExceptions.h.

Member Function Documentation

◆ getAlphabet()

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

Get the alphabet that threw the exception.

Returns
a const pointer toward the alphabet.

Definition at line 89 of file AlphabetExceptions.h.

References bpp::AlphabetException::alphabet_.

◆ getBadInt()

int BadIntException::getBadInt ( ) const
virtual

Get the integer that threw the exception.

Returns
the faulty integer.

Definition at line 70 of file AlphabetExceptions.cpp.

References i_.

Member Data Documentation

◆ i_

int bpp::BadIntException::i_
protected

Definition at line 129 of file AlphabetExceptions.h.

Referenced by getBadInt().


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