Package org.eclipse.jgit.patch
Class FormatError
- java.lang.Object
-
- org.eclipse.jgit.patch.FormatError
-
public class FormatError extends java.lang.ObjectAn 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()java.lang.StringgetLineText()java.lang.StringgetMessage()intgetOffset()FormatError.SeveritygetSeverity()java.lang.StringtoString()
-
-
-
Method Detail
-
getSeverity
public FormatError.Severity getSeverity()
- Returns:
- the severity of the error.
-
getMessage
public java.lang.String getMessage()
- Returns:
- a message describing the error.
-
getBuffer
public byte[] getBuffer()
- Returns:
- the byte buffer holding the patch script.
-
getOffset
public int getOffset()
- Returns:
- byte offset within
getBuffer()where the error is
-
getLineText
public java.lang.String getLineText()
- Returns:
- line of the patch script the error appears on.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-