private void Try(Action action) { if (_catchExceptions) { try { action(); } catch (CompilerException e) { _exceptions.Add(e); } } else { action(); } }
private LabelGraph HandleExceptions(ExportNode n) { if (_catchExceptions) { try { return(_graphHelper.ExportGraph(n)); } catch (CompilerException e) { _exceptions.Add(e); return(null); } } else { return(_graphHelper.ExportGraph(n)); } }