bpp-phyl  2.2.0
bpp::SubstitutionModelException Class Reference

Exception that may be thrown by susbstitution models. More...

#include <Bpp/Phyl/Model/SubstitutionModel.h>

+ Inheritance diagram for bpp::SubstitutionModelException:
+ Collaboration diagram for bpp::SubstitutionModelException:

Public Member Functions

 SubstitutionModelException (const std::string &text, const SubstitutionModel *sm=0)
 
 SubstitutionModelException (const SubstitutionModelException &sme)
 
SubstitutionModelExceptionoperator= (const SubstitutionModelException &sme)
 
 ~SubstitutionModelException () throw ()
 
virtual const SubstitutionModelgetSubstitutionModel () const
 Get the model that throws the exception. More...
 

Protected Attributes

const SubstitutionModelmodel_
 

Detailed Description

Exception that may be thrown by susbstitution models.

See also
SubstitutionModel

Definition at line 72 of file SubstitutionModel.h.

Constructor & Destructor Documentation

◆ SubstitutionModelException() [1/2]

bpp::SubstitutionModelException::SubstitutionModelException ( const std::string &  text,
const SubstitutionModel sm = 0 
)

◆ SubstitutionModelException() [2/2]

bpp::SubstitutionModelException::SubstitutionModelException ( const SubstitutionModelException sme)
inline

Definition at line 81 of file SubstitutionModel.h.

◆ ~SubstitutionModelException()

bpp::SubstitutionModelException::~SubstitutionModelException ( )
throw (
)

Member Function Documentation

◆ getSubstitutionModel()

virtual const SubstitutionModel* bpp::SubstitutionModelException::getSubstitutionModel ( ) const
inlinevirtual

Get the model that throws the exception.

Returns
The model that throws the exception.

Definition at line 99 of file SubstitutionModel.h.

References model_.

◆ operator=()

SubstitutionModelException& bpp::SubstitutionModelException::operator= ( const SubstitutionModelException sme)
inline

Definition at line 84 of file SubstitutionModel.h.

References model_.

Member Data Documentation

◆ model_

const SubstitutionModel* bpp::SubstitutionModelException::model_
protected

Definition at line 76 of file SubstitutionModel.h.

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


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