Added MissingCompactnessException to the basic vcg exceptions

This commit is contained in:
Paolo Cignoni 2013-12-20 02:23:24 +00:00
parent 4b8673b60b
commit 4897d75026
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,19 @@ public:
return buf;
}
};
class MissingCompactnessException : public std::runtime_error
{
public:
MissingCompactnessException(const std::string &err):std::runtime_error(err)
{
std::cout << "Lack of Compactness Exception -" << err << "- \n";
}
virtual const char *what() const throw ()
{
static char buf[128]="Lack of Compactness";
return buf;
}
};
}
#endif // EXCEPTION_H