Package org.eclipse.jgit.patch
Class FormatError
- java.lang.Object
-
- org.eclipse.jgit.patch.FormatError
-
public class FormatError extends java.lang.Object
An error in a patch script
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FormatError.Severity
Classification of an error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
java.lang.String
getLineText()
java.lang.String
getMessage()
int
getOffset()
FormatError.Severity
getSeverity()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-