bpp-seq3  3.0.0
bpp::EmptySiteException Class Reference

Exception sent when a empty site is found. More...

#include <Bpp/Seq/SiteExceptions.h>

+ Inheritance diagram for bpp::EmptySiteException:
+ Collaboration diagram for bpp::EmptySiteException:

Public Member Functions

 EmptySiteException (const std::string &text, const CoreSiteInterface *s)
 
virtual ~EmptySiteException ()
 
virtual const CoreSiteInterfacegetSite () const
 Get the site that threw the exception. More...
 
const char * what () const noexcept override
 
const std::string & message () const noexcept
 

Private Attributes

const CoreSiteInterfacesite_
 A reference toward a site object. More...
 
std::string message_
 

Detailed Description

Exception sent when a empty site is found.

Definition at line 69 of file SiteExceptions.h.

Constructor & Destructor Documentation

◆ EmptySiteException()

bpp::EmptySiteException::EmptySiteException ( const std::string &  text,
const CoreSiteInterface s 
)
inline

Definition at line 73 of file SiteExceptions.h.

◆ ~EmptySiteException()

virtual bpp::EmptySiteException::~EmptySiteException ( )
inlinevirtual

Definition at line 76 of file SiteExceptions.h.

Member Function Documentation

◆ getSite()

virtual const CoreSiteInterface* bpp::SiteException::getSite ( ) const
inlinevirtualinherited

Get the site that threw the exception.

Returns
A const reference toward the site.

Definition at line 63 of file SiteExceptions.h.

References bpp::SiteException::site_.

Member Data Documentation

◆ site_

const CoreSiteInterface* bpp::SiteException::site_
privateinherited

A reference toward a site object.

Definition at line 26 of file SiteExceptions.h.

Referenced by bpp::SiteException::getSite(), and bpp::SiteException::operator=().


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