Added MissingCompactnessException to the basic vcg exceptions
This commit is contained in:
parent
4b8673b60b
commit
4897d75026
|
|
@ -38,6 +38,19 @@ public:
|
||||||
return buf;
|
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
|
#endif // EXCEPTION_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue