More bling for GitTfsException.

This commit is contained in:
Matt Burke
2011-02-22 09:54:01 -05:00
parent 1cb0c1f696
commit f4e2cb073a
+9
View File
@@ -31,5 +31,14 @@ namespace Sep.Git.Tfs.Core
{
return new GitTfsException(Message, RecommendedSolutions, this);
}
public GitTfsException WithRecommendation(params string [] recommendations)
{
if (RecommendedSolutions == null)
RecommendedSolutions = (IEnumerable<string>) recommendations.Clone();
else
RecommendedSolutions = RecommendedSolutions.Append<string>(recommendations);
return this;
}
}
}