binpac: BIT-1914: Implement &check

Patch submitted by Antoine
This commit is contained in:
Jon Siwek 2018-04-18 18:07:59 -05:00 committed by Tim Wojtulewicz
parent 0b84838465
commit 0ecf7755ea
2 changed files with 23 additions and 0 deletions

View file

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