bpp-seq3  3.0.0
SiteContainerExceptions.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_SEQ_CONTAINER_SITECONTAINEREXCEPTIONS_H
6 #define BPP_SEQ_CONTAINER_SITECONTAINEREXCEPTIONS_H
7 
8 
9 // From STL
10 #include <string>
11 #include <Bpp/Exceptions.h>
12 
13 namespace bpp
14 {
21  public Exception
22 {
23 protected:
27  const std::string id;
28 
29 public:
30  // Class constructor
31 
38  SiteNotFoundException(const char* text, const char* sId = "");
39 
46  SiteNotFoundException(const std::string& text, const std::string& sId = "");
47 
48  // Class destructor
50 
51 public:
57  virtual const std::string getSiteId() const;
58 };
59 } // end of namespace bpp.
60 #endif // BPP_SEQ_CONTAINER_SITECONTAINEREXCEPTIONS_H
The site not found exception base class.
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.