5 #ifndef EXCEPTIONS_DNA_H 6 #define EXCEPTIONS_DNA_H 8 #include "../ExceptionsFaif.hpp" 21 virtual const char *what()
const throw() {
return "NucleotideBadCharException"; }
23 virtual std::ostream&
print(std::ostream& os)
const throw(){
24 os <<
"Char '" << c_ <<
"' is not nucleotide name.";
36 virtual const char *what()
const throw() {
return "CodonStringTooShortException"; }
38 virtual std::ostream&
print(std::ostream& os)
const throw(){
39 os <<
"String for codon is too short";
51 #endif //EXCEPTIONS_DNA_H
the base exception class for faif library
Definition: ExceptionsFaif.hpp:18
virtual std::ostream & print(std::ostream &os) const
Definition: ExceptionsDna.h:38
the exception thrown when unknown nucleotide (bad letter) occures
Definition: ExceptionsDna.h:17
virtual std::ostream & print(std::ostream &os) const
Definition: ExceptionsDna.h:23
the exception when chain representing codon is shorted than 3 nucleotides
Definition: ExceptionsDna.h:32