public class IncorrectLineLengthException extends FlatFileFormatException
| Constructor and Description |
|---|
IncorrectLineLengthException(int expectedLength,
int actualLength) |
IncorrectLineLengthException(int expectedLength,
int actualLength,
java.lang.String input) |
IncorrectLineLengthException(java.lang.String message,
int expectedLength,
int actualLength) |
IncorrectLineLengthException(java.lang.String message,
int expectedLength,
int actualLength,
java.lang.String input) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActualLength()
Retrieves the actual length that was recorded for this exception.
|
int |
getExpectedLength()
Retrieves the expected length that was recorded for this exception.
|
getInputpublic IncorrectLineLengthException(java.lang.String message,
int expectedLength,
int actualLength,
java.lang.String input)
message - the message for this exception.expectedLength - int containing the length that was expected.actualLength - int containing the actual length.input - the String that contained the contents that caused
the exception to be thrown.public IncorrectLineLengthException(java.lang.String message,
int expectedLength,
int actualLength)
message - the message for this exception.expectedLength - int containing the length that was expected.actualLength - int containing the actual length.public IncorrectLineLengthException(int expectedLength,
int actualLength,
java.lang.String input)
expectedLength - int containing the length that was expected.actualLength - int containing the actual length.input - the String that contained the contents that caused
the exception to be thrown.public IncorrectLineLengthException(int expectedLength,
int actualLength)
expectedLength - int containing the length that was expected.actualLength - int containing the actual length.public int getActualLength()
public int getExpectedLength()