Module datarush.library
Class RowTooLongException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pervasive.datarush.exceptions.DRException
com.pervasive.datarush.operators.io.textfile.RowTooLongException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionRowTooLongException(int maxRowLength) Create an error indicating the specified row length limit was exceeded. -
Method Summary
Modifier and TypeMethodDescriptionGets the file path which exceeded the limit.intGets the limit that was exceeded.voidsetFileName(String name) Sets the file which exceeded the limit.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
Gets the file path which exceeded the limit. This may not be known in all contexts.- Returns:
- the offending file
-
setFileName
Sets the file which exceeded the limit.- Parameters:
name- the path of the offending file
-
getMessage
- Overrides:
getMessagein classThrowable
-