From f4e2cb073abbcaaccdb9e96a4bc0dbc7a160916e Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Tue, 22 Feb 2011 09:54:01 -0500 Subject: [PATCH] More bling for GitTfsException. --- GitTfs/Core/GitTfsException.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GitTfs/Core/GitTfsException.cs b/GitTfs/Core/GitTfsException.cs index d5ce39b6..403f2701 100644 --- a/GitTfs/Core/GitTfsException.cs +++ b/GitTfs/Core/GitTfsException.cs @@ -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) recommendations.Clone(); + else + RecommendedSolutions = RecommendedSolutions.Append(recommendations); + return this; + } } } \ No newline at end of file