Class RowTooLongException

All Implemented Interfaces:
Serializable

public class RowTooLongException extends DRException
Exception thrown when the number of characters in the first row of a delimited text file exceeds the maximum allowed. This most often occurs when the file contains Unix newlines (\n) but Windows newlines (\r\n) were specified, and the reader would otherwise buffer the entire file into memory.
See Also:
  • Constructor Details

    • RowTooLongException

      public RowTooLongException(int maxRowLength)
      Create an error indicating the specified row length limit was exceeded.
      Parameters:
      maxRowLength - the row limit exceeded
  • Method Details

    • getMaxRowLength

      public int getMaxRowLength()
      Gets the limit that was exceeded.
      Returns:
      the row length limit
    • getFileName

      public String getFileName()
      Gets the file path which exceeded the limit. This may not be known in all contexts.
      Returns:
      the offending file
    • setFileName

      public void setFileName(String name)
      Sets the file which exceeded the limit.
      Parameters:
      name - the path of the offending file
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable