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.
-
Field Summary
Fields Modifier and Type Field Description private byte[]
buf
private java.lang.String
message
private int
offset
private FormatError.Severity
severity
-
Constructor Summary
Constructors Constructor Description FormatError(byte[] buffer, int ptr, FormatError.Severity sev, java.lang.String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
Get the byte buffer holding the patch script.java.lang.String
getLineText()
Get line of the patch script the error appears on.java.lang.String
getMessage()
Get a message describing the error.int
getOffset()
Get byte offset withingetBuffer()
where the error is.FormatError.Severity
getSeverity()
Get the severity of the error.java.lang.String
toString()
-
-
-
Field Detail
-
buf
private final byte[] buf
-
offset
private final int offset
-
severity
private final FormatError.Severity severity
-
message
private final java.lang.String message
-
-
Constructor Detail
-
FormatError
FormatError(byte[] buffer, int ptr, FormatError.Severity sev, java.lang.String msg)
-
-
Method Detail
-
getSeverity
public FormatError.Severity getSeverity()
Get the severity of the error.- Returns:
- the severity of the error.
-
getMessage
public java.lang.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 java.lang.String getLineText()
Get line of the patch script the error appears on.- Returns:
- line of the patch script the error appears on.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-