|
1 | 1 | using System;
|
2 |
| -using System.Runtime.Serialization; |
3 |
| -using LibGit2Sharp.Core; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
4 | 5 |
|
5 | 6 | namespace LibGit2Sharp
|
6 | 7 | {
|
7 | 8 | /// <summary>
|
8 |
| - /// The exception that is thrown when a merge cannot be performed because |
9 |
| - /// of a conflicting change. |
| 9 | + /// The exception that is thrown when a checkout cannot be performed |
| 10 | + /// because of a conflicting change staged in the index, or unstaged |
| 11 | + /// in the working directory. |
10 | 12 | /// </summary>
|
11 | 13 | [Serializable]
|
12 |
| - public class MergeConflictException : LibGit2SharpException |
| 14 | + [Obsolete("This type will be removed in the next release. Please use CheckoutConflictException instead.")] |
| 15 | + public class MergeConflictException : CheckoutConflictException |
13 | 16 | {
|
14 |
| - /// <summary> |
15 |
| - /// Initializes a new instance of the <see cref="LibGit2Sharp.MergeConflictException"/> class. |
16 |
| - /// </summary> |
17 |
| - public MergeConflictException() |
18 |
| - { |
19 |
| - } |
20 |
| - |
21 |
| - /// <summary> |
22 |
| - /// Initializes a new instance of the <see cref="LibGit2Sharp.MergeConflictException"/> class with a specified error message. |
23 |
| - /// </summary> |
24 |
| - /// <param name="message">A message that describes the error.</param> |
25 |
| - public MergeConflictException(string message) |
26 |
| - : base(message) |
27 |
| - { |
28 |
| - } |
29 |
| - |
30 |
| - /// <summary> |
31 |
| - /// Initializes a new instance of the <see cref="LibGit2Sharp.MergeConflictException"/> class with a specified error message and a reference to the inner exception that is the cause of this exception. |
32 |
| - /// </summary> |
33 |
| - /// <param name="message">The error message that explains the reason for the exception.</param> |
34 |
| - /// <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> |
35 |
| - public MergeConflictException(string message, Exception innerException) |
36 |
| - : base(message, innerException) |
37 |
| - { |
38 |
| - } |
39 |
| - |
40 |
| - /// <summary> |
41 |
| - /// Initializes a new instance of the <see cref="LibGit2Sharp.MergeConflictException"/> class with a serialized data. |
42 |
| - /// </summary> |
43 |
| - /// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param> |
44 |
| - /// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param> |
45 |
| - protected MergeConflictException(SerializationInfo info, StreamingContext context) |
46 |
| - : base(info, context) |
47 |
| - { |
48 |
| - } |
49 |
| - |
50 |
| - internal MergeConflictException(string message, GitErrorCode code, GitErrorCategory category) |
51 |
| - : base(message, code, category) |
52 |
| - { |
53 |
| - } |
54 | 17 | }
|
55 | 18 | }
|
0 commit comments