mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: BIT-1914: Implement &check
Patch submitted by Antoine
This commit is contained in:
parent
0b84838465
commit
0ecf7755ea
2 changed files with 23 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue