public class CsvException extends Exception
Constructor and Description |
---|
CsvException()
Default constructor, in case no parameters are required.
|
CsvException(String message)
Constructor that allows a human-readable message.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getLine() |
long |
getLineNumber() |
void |
setLine(String[] line) |
void |
setLineNumber(long lineNumber) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CsvException()
public CsvException(String message)
message
- The error textpublic long getLineNumber()
public void setLineNumber(long lineNumber)
lineNumber
- The line number that caused the error. This should be the
one-based number of the line that caused the error, not including the
header line, if present.public String[] getLine()
null
on errors during writing, and may
also be null
or empty on certain errors that occur during
reading.public void setLine(String[] line)
line
- The line that caused the error on reading. May be
null
.Copyright © 2005–2023. All rights reserved.