可以在解析引擎中注册自己的错误处理回调函数以便处理错误。
示例:
bool MyErrorHandler(ErrorContext ctx)
{
// Handle the error
return true;
// true=continue parsing, false=stop
}
FFReader ffr = (FFReader)docspec.Parse(new DataReader());
ffr.OnErrorEvent += MyErrorHandler;