4 * Copyright (c) 2007 Des Higgins, Julie Thompson and Toby Gibson.
7 * This class will be used to report invalid combinations of residue type and
8 * aligntype. Correct values are either 0 or 1.
9 * Note: It will not be possible for a user to cause this exception, only programmer.
19 class InvalidCombination
22 InvalidCombination(int alignResidueType, int alignType)
23 : _alignResidueType(alignResidueType),
24 _alignType(alignType) {}
25 void whatHappened(std::ostream &os = std::cerr)
27 os << "Incorrect Combination of alignResidueType and alignType.\n"
28 << "Values should be 0 or 1\n"
29 << "alignResidueType = " << _alignResidueType << "\n"
30 << "alignType = " << _alignType << "\n";
33 int _alignResidueType;