UnifiedDiffApplyException Class

The exception thrown when a hunk of a unified diff does not match the text it is applied to.

public sealed class UnifiedDiffApplyException : Exception
Inheritance
Exception UnifiedDiffApplyException

Constructors

NameDescription
UnifiedDiffApplyException()
UnifiedDiffApplyException(string)
UnifiedDiffApplyException(string, Exception)

UnifiedDiffApplyException overloads

UnifiedDiffApplyException()

UnifiedDiffApplyException.cs
public UnifiedDiffApplyException()

No documentation is available.

UnifiedDiffApplyException(string)

UnifiedDiffApplyException.cs
public UnifiedDiffApplyException(string message)
Parameters
message string

No documentation is available.

UnifiedDiffApplyException(string, Exception)

UnifiedDiffApplyException.cs
public UnifiedDiffApplyException(string message, Exception innerException)
Parameters
message string
innerException Exception

No documentation is available.

Properties

NameDescription
HunkIndexGets the 0-based index of the hunk that does not match, in UnifiedDiffFile.Hunks.

Gets the 0-based index of the hunk that does not match, in UnifiedDiffFile.Hunks.

public int HunkIndex { get; }

Property value

int