Package com.opencsv.exceptions
Class CsvMalformedLineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.opencsv.exceptions.CsvMalformedLineException
- All Implemented Interfaces:
Serializable
Exception that is thrown when the
CSVReader
cannot process a line.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNullary constructor.CsvMalformedLineException
(String message, long lineNumber, String context) Constructor with a message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
lineNumber
private long lineNumber -
context
-
-
Constructor Details
-
CsvMalformedLineException
public CsvMalformedLineException()Nullary constructor. Does nothing. -
CsvMalformedLineException
Constructor with a message.- Parameters:
message
- A human-readable error messagelineNumber
- Line number where error occurredcontext
- Line (or part of the line) that caused the error
-
-
Method Details
-
getLineNumber
public long getLineNumber()- Returns:
- The row number set during construction of the exception
-
getContext
- Returns:
- Context set during construction of the exception
-