binpac: BIT-1914: move &check implementation to new &enforce attribute

&check returns to being a no-op to avoid unintentionally
breaking existing code.
This commit is contained in:
Jon Siwek 2018-04-19 14:05:08 -05:00 committed by Tim Wojtulewicz
parent 0ecf7755ea
commit 8a1c8db02e
6 changed files with 23 additions and 10 deletions

View file

@ -22,12 +22,12 @@ protected:
string msg_;
};
class ExceptionCheckViolation : public Exception
class ExceptionEnforceViolation : public Exception
{
public:
ExceptionCheckViolation(const char* where)
ExceptionEnforceViolation(const char* where)
{
append(binpac_fmt("check violation : %s", where));
append(binpac_fmt("&enforce violation : %s", where));
}
};