Package org.eclipse.jgit.patch
Class FormatError
java.lang.Object
org.eclipse.jgit.patch.FormatError
An error in a patch script
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the byte buffer holding the patch script.Get line of the patch script the error appears on.Get a message describing the error.int
Get byte offset withingetBuffer()
where the error is.Get the severity of the error.toString()
-
Field Details
-
buf
private final byte[] buf -
offset
private final int offset -
severity
-
message
-
-
Constructor Details
-
FormatError
FormatError(byte[] buffer, int ptr, FormatError.Severity sev, String msg)
-
-
Method Details
-
getSeverity
Get the severity of the error.- Returns:
- the severity of the error.
-
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
Get line of the patch script the error appears on.- Returns:
- line of the patch script the error appears on.
-
toString
-