public CompositeParserException(ParserException[] errors) : base(GetMessage(errors)) { if (errors == null) throw new ArgumentNullException("errors"); Errors = errors; }
private void addErrorAttachment(List <IEvent> events, ParserException e, String uri) { events.Add(new AttachmentEvent( new AttachmentEvent.SourceRef( uri, new AttachmentEvent.Location( e.Location.Line, e.Location.Column ) ), e.Message )); }
private static string GetMessage(ParserException[] errors) { if (errors == null) throw new ArgumentNullException("errors"); return "Parser errors:" + Environment.NewLine + string.Join(Environment.NewLine, errors.Select(e => e.Message)); }
private static string GetMessage(ParserException[] errors) { return "Parser errors:" + Environment.NewLine + string.Join(Environment.NewLine, errors.Select(e => e.Message)); }