Class CsvMalformedLineException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CsvMalformedLineException
    extends java.io.IOException
    Exception that is thrown when the CSVReader cannot process a line.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContext()  
      long getLineNumber()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CsvMalformedLineException

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

        public CsvMalformedLineException​(java.lang.String message,
                                         long lineNumber,
                                         java.lang.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 Detail

      • getLineNumber

        public long getLineNumber()
        Returns:
        The row number set during construction of the exception
      • getContext

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