- java.lang.Object
-
- org.eclipse.jgit.patch.FormatError
-
public class FormatError extends Object
An error in a patch script
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormatError.SeverityClassification of an error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuffer()Get the byte buffer holding the patch script.StringgetLineText()Get line of the patch script the error appears on.StringgetMessage()Get a message describing the error.intgetOffset()Get byte offset withingetBuffer()where the error is.FormatError.SeveritygetSeverity()Get the severity of the error.StringtoString()
-
-
-
Method Detail
-
getSeverity
public FormatError.Severity getSeverity()
Get the severity of the error.- Returns:
- the severity of the error.
-
getMessage
public String getMessage()
Get a message describing the error.- Returns:
- a message describing the error.
-
getBuffer
public byte[] getBuffer()
Get the byte buffer holding the patch script.- Returns:
- the byte buffer holding the patch script.
-
getOffset
public int getOffset()
Get byte offset withingetBuffer()where the error is.- Returns:
- byte offset within
getBuffer()where the error is.
-
getLineText
public String getLineText()
Get line of the patch script the error appears on.- Returns:
- line of the patch script the error appears on.
-
-