Class CsvException

    • Constructor Summary

      Constructors 
      Constructor Description
      CsvException()
      Default constructor, in case no parameters are required.
      CsvException​(java.lang.String message)
      Constructor that allows a human-readable message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getLine()  
      long getLineNumber()  
      void setLine​(java.lang.String[] line)  
      void setLineNumber​(long lineNumber)  
      • 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

      • CsvException

        public CsvException()
        Default constructor, in case no parameters are required.
      • CsvException

        public CsvException​(java.lang.String message)
        Constructor that allows a human-readable message.
        Parameters:
        message - The error text
    • Method Detail

      • getLineNumber

        public long getLineNumber()
        Returns:
        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.
      • setLineNumber

        public void setLineNumber​(long lineNumber)
        Parameters:
        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.
      • getLine

        public java.lang.String[] getLine()
        Returns:
        The line that caused the error if reading and the data are available. Is always null on errors during writing, and may also be null or empty on certain errors that occur during reading.
        Since:
        4.4
      • setLine

        public void setLine​(java.lang.String[] line)
        Parameters:
        line - The line that caused the error on reading. May be null.
        Since:
        4.4