From 4897d7502659be0f920ea63d4cc1b89174a0deb9 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 20 Dec 2013 02:23:24 +0000 Subject: [PATCH] Added MissingCompactnessException to the basic vcg exceptions --- vcg/complex/exception.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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