Skip to content
Browse files

Add libgit2exception back in

  • Loading branch information...
1 parent dfc5de4 commit 5f61f26736683239f89aeba848b76925ddc72e70 @tclem committed
Showing with 33 additions and 0 deletions.
  1. +33 −0 LibGit2Sharp/LibGit2SharpException.cs
View
33 LibGit2Sharp/LibGit2SharpException.cs
@@ -7,6 +7,39 @@ namespace LibGit2Sharp
/// <summary>
/// The exception that is thrown when an error occurs during application execution.
/// </summary>
+ [Obsolete("This type will be removed in the next release. Please use LibGit2SharpException instead.")]
+ public class LibGit2Exception : LibGit2SharpException
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref = "LibGit2Exception" /> class.
+ /// </summary>
+ public LibGit2Exception()
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref = "LibGit2Exception" /> class with a specified error message.
+ /// </summary>
+ /// <param name = "message">A message that describes the error. </param>
+ public LibGit2Exception(string message)
+ : base(message)
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref = "LibGit2Exception" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.
+ /// </summary>
+ /// <param name = "message">The error message that explains the reason for the exception. </param>
+ /// <param name = "innerException">The exception that is the cause of the current exception. If the <paramref name = "innerException" /> parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.</param>
+ public LibGit2Exception(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+ }
+
+ /// <summary>
+ /// The exception that is thrown when an error occurs during application execution.
+ /// </summary>
public class LibGit2SharpException : Exception
{
readonly bool isLibraryError;

0 comments on commit 5f61f26

Please sign in to comment.
Something went wrong with that request. Please try again.