private static string MessageHelper(string contextPath, RepositoryEventBase @event, IEnumerable<Exception> exceptions)
 {
     var exCount = exceptions.Count();
     return String.Format("Event {0} handlers threw {1} exception{2}. Context path: {3}. For more information see Exceptions property.",
         @event.EventName, exCount, exCount == 1 ? "" : "s", contextPath);
 }
 public RepositoryEventException(string contextPath, RepositoryEventBase @event, IEnumerable<Exception> exceptions)
     : base(MessageHelper(contextPath, @event, exceptions))
 {
     this.Exceptions = exceptions;
 }