bpp-seq3  3.0.0
SiteContainerExceptions.cpp
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
6 
7 using namespace bpp;
8 using namespace std;
9 
10 /*******************************************************************************
11 * Site containers exceptions *
12 *******************************************************************************/
13 
14 SiteNotFoundException::SiteNotFoundException(const char* text, const char* sId) :
15  Exception("SequenceNotFoundException: " + string(text) + "(" + sId + ")"),
16  id(sId) {}
17 
18 SiteNotFoundException::SiteNotFoundException(const string& text, const string& sId) :
19  Exception("SequenceNotFoundException: " + text + "(" + sId + ")"),
20  id(sId) {}
21 
23 
24 const string SiteNotFoundException::getSiteId() const { return id; }
const std::string id
The id of the site that was to be found.
virtual const std::string getSiteId() const
Get the id of the site that was to be found.
SiteNotFoundException(const char *text, const char *sId="")
Build a new SiteNotFoundException object.
This alphabet is used to deal NumericAlphabet.