diff --git a/vcg/complex/exception.h b/vcg/complex/exception.h index c40acf53..e7207f93 100644 --- a/vcg/complex/exception.h +++ b/vcg/complex/exception.h @@ -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