public class FormatError
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FormatError.Severity
Classification of an error.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
buf |
private java.lang.String |
message |
private int |
offset |
private FormatError.Severity |
severity |
Constructor and Description |
---|
FormatError(byte[] buffer,
int ptr,
FormatError.Severity sev,
java.lang.String msg) |
Modifier and Type | Method and 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 within
getBuffer() where the error is. |
FormatError.Severity |
getSeverity()
Get the severity of the error.
|
java.lang.String |
toString() |
private final byte[] buf
private final int offset
private final FormatError.Severity severity
private final java.lang.String message
FormatError(byte[] buffer, int ptr, FormatError.Severity sev, java.lang.String msg)
public FormatError.Severity getSeverity()
public java.lang.String getMessage()
public byte[] getBuffer()
public int getOffset()
getBuffer()
where the error is.getBuffer()
where the error is.public java.lang.String getLineText()
public java.lang.String toString()
toString
in class java.lang.Object