public override string ToString() { return new StringBuilder().Append(GetType().Name) .Append(": ") .Append(Message) .AppendLine() .AppendFormat(" in {0}:line {1}", Location.FilePath, Location.Line) .AppendLine().ToString(); }