public class ParseError extends Object implements Serializable
To use in your Converter
class, you should return null from
Converter.stringToJava(String, int, int, ColumnInfo, String, ParseError)
and set the error type to something
other than ParseError.ErrorType.NONE
. The message can be null if there is no additional information about the error.
Modifier and Type | Class and Description |
---|---|
static class |
ParseError.ErrorType
The type of the error.
|
Constructor and Description |
---|
ParseError() |
Modifier and Type | Method and Description |
---|---|
String |
getColumnName()
Return the name of the column that was affected, if any.
|
Class<?> |
getColumnType()
Return the java class of the column, if any.
|
String |
getColumnValue()
Return the value of the column that was being parsed, if any.
|
ParseError.ErrorType |
getErrorType()
Return the enumerated error type for this parse error.
|
String |
getLine()
Line from the input that generated the error.
|
int |
getLineNumber()
Line number in the input file that generated the error.
|
int |
getLinePos()
Line position in the input line where the parse error occurred, if any.
|
String |
getMessage()
Return a string message providing details about the error.
|
boolean |
isError()
Returns true if the error-type is not
ParseError.ErrorType.NONE . |
void |
reset()
Resets all of the fields to non-error status.
|
void |
setColumnName(String columnName) |
void |
setColumnType(Class<?> columnClass) |
void |
setColumnValue(String columnValue) |
void |
setErrorType(ParseError.ErrorType errorType) |
void |
setLine(String line) |
void |
setLineNumber(int lineNumber) |
void |
setLinePos(int linePos) |
void |
setMessage(String message) |
String |
toString() |
public ParseError.ErrorType getErrorType()
public void setErrorType(ParseError.ErrorType errorType)
public String getMessage()
public void setMessage(String message)
public String getColumnName()
public void setColumnName(String columnName)
public String getColumnValue()
public void setColumnValue(String columnValue)
public Class<?> getColumnType()
public void setColumnType(Class<?> columnClass)
public String getLine()
public void setLine(String line)
public int getLineNumber()
public void setLineNumber(int lineNumber)
public int getLinePos()
public void setLinePos(int linePos)
public void reset()
public boolean isError()
ParseError.ErrorType.NONE
.This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.