Top Description Fields Constructors Methods
com.opencsv.exceptions

public Class CsvMalformedLineException

extends IOException
Class Inheritance
Imports
java.io.IOException

Exception that is thrown when the com.opencsv.CSVReader cannot process a line.

Field Summary

Modifier and TypeField and Description
private String
private long
private static final long

Constructor Summary

AccessConstructor and Description
public
CsvMalformedLineException()

Nullary constructor.

public
CsvMalformedLineException(String
A human-readable error message
message
,
long
Line number where error occurred
lineNumber
,
String
Line (or part of the line) that caused the error
context
)

Constructor with a message.

Method Summary

Modifier and TypeMethod and Description
public String
getContext()

Returns: Context set during construction of the exception

public long
getLineNumber()

Returns: The row number set during construction of the exception

Field Detail

contextback to summary
private String context
lineNumberback to summary
private long lineNumber
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

CsvMalformedLineExceptionback to summary
public CsvMalformedLineException()

Nullary constructor. Does nothing.

CsvMalformedLineExceptionback to summary
public CsvMalformedLineException(String message, long lineNumber, String context)

Constructor with a message.

Parameters
message:String

A human-readable error message

lineNumber:long

Line number where error occurred

context:String

Line (or part of the line) that caused the error

Method Detail

getContextback to summary
public String getContext()
Returns:String

Context set during construction of the exception

getLineNumberback to summary
public long getLineNumber()
Returns:long

The row number set during construction of the exception