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
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RowTooLongException(int maxRowLength)
Create an error indicating the specified row length limit was exceeded.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileName()
Gets the file path which exceeded the limit.int
getMaxRowLength()
Gets the limit that was exceeded.String
getMessage()
void
setFileName(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
-
-
-
-
Method Detail
-
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 classThrowable
-
-