Class CsvMalformedLineException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.opencsv.exceptions.CsvMalformedLineException
All Implemented Interfaces:
Serializable

public class CsvMalformedLineException extends IOException
Exception that is thrown when the CSVReader cannot process a line.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • lineNumber

      private long lineNumber
    • context

      private String context
  • Constructor Details

    • CsvMalformedLineException

      public CsvMalformedLineException()
      Nullary constructor. Does nothing.
    • CsvMalformedLineException

      public CsvMalformedLineException(String message, long lineNumber, String context)
      Constructor with a message.
      Parameters:
      message - A human-readable error message
      lineNumber - Line number where error occurred
      context - 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

      public String getContext()
      Returns:
      Context set during construction of the exception