Class MissingFieldCsvException
Represents the exception that is thrown when a there is a missing field in a record of the CSV file.
Inherited Members
Namespace: Mars.Common.IO.Exceptions
Assembly: Mars.IO.dll
Syntax
public class MissingFieldCsvException : MalformedCsvException
Remarks
MissingFieldException would have been a better name, but there is already a
System.MissingFieldException.
Constructors
MissingFieldCsvException(String, Int32, Int64, Int32)
Initializes a new instance of the MissingFieldCsvException class.
Declaration
public MissingFieldCsvException(string rawData, int currentPosition, long currentRecordIndex, int currentFieldIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | rawData | The raw data when the error occured. |
System.Int32 | currentPosition | The current position in the raw data. |
System.Int64 | currentRecordIndex | The current record index. |
System.Int32 | currentFieldIndex | The current field index. |
MissingFieldCsvException(String, Int32, Int64, Int32, Exception)
Initializes a new instance of the MissingFieldCsvException class.
Declaration
public MissingFieldCsvException(string rawData, int currentPosition, long currentRecordIndex, int currentFieldIndex, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | rawData | The raw data when the error occured. |
System.Int32 | currentPosition | The current position in the raw data. |
System.Int64 | currentRecordIndex | The current record index. |
System.Int32 | currentFieldIndex | The current field index. |
Exception | innerException | The exception that is the cause of the current exception. |