您可以在解析引擎中註冊自己的錯誤處理回呼函數來處理錯誤。
範例
bool MyErrorHandler(ErrorContext ctx)
{
// Handle the error
return true;
// true=continue parsing, false=stop
}
FFReader ffr = (FFReader)docspec.Parse(new DataReader());
ffr.OnErrorEvent += MyErrorHandler;