Package org.arakhne.afc.io.dbase
Class InvalidRawDataFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.arakhne.afc.io.dbase.DBaseFileException
-
- org.arakhne.afc.io.dbase.InvalidRawDataFormatException
-
- All Implemented Interfaces:
Serializable
public class InvalidRawDataFormatException extends DBaseFileException
Exception throws when the raw data extracted from the dBase file does not correspond to a valid type according to the Java parsing API.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND, Olivier LAMOTTE
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- dbasefile
-
-
Constructor Summary
Constructors Constructor Description InvalidRawDataFormatException(int recordNumber, int columnNumber, CharSequence rawData)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnIndex()Replies the column index on which the error occurs.CharSequencegetRawData()Replies the raw data that cause this exception.intgetRecordNumber()Replies the index of the record on which the error occurs.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
InvalidRawDataFormatException
public InvalidRawDataFormatException(int recordNumber, int columnNumber, CharSequence rawData)Constructor.- Parameters:
recordNumber- the record number.columnNumber- the column number.rawData- the raw data.
-
-
Method Detail
-
getRecordNumber
@Pure public int getRecordNumber()
Replies the index of the record on which the error occurs.- Returns:
- an index between
1and the count of record (inclusives)
-
getColumnIndex
@Pure public int getColumnIndex()
Replies the column index on which the error occurs.- Returns:
- a column index between
0(inclusive) andDBaseFileReader.getDBFFieldCount()(exclusive).
-
getRawData
@Pure public CharSequence getRawData()
Replies the raw data that cause this exception.- Returns:
- the raw data
-
-