[Bro-Dev] Error handling for policy parser
Vern Paxson
vern at icir.org
Fri Dec 10 17:59:15 PST 2010
> hmmm, one difference between error() and BroObj::Error() is the location
> that's reported in the error message. error() uses the current parser
> location, BroObj::Error() uses the location were the object was created.
IIRC, the convention is that you use BroObj::Error() if there's a clear
Type object with which to associate the error, and otherwise error().
So it sounds like error() is the right approach for you.
Vern
More information about the bro-dev
mailing list