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: IRM.Data
Assembly: IRM.dll
Syntax
[Serializable]
public class MissingFieldCsvException : MalformedCsvException, ISerializable, _Exception
Remarks
MissingFieldException would have been a better name, but there is already a MissingFieldException.
Constructors
MissingFieldCsvException()
Initializes a new instance of the MissingFieldCsvException class.
Declaration
public MissingFieldCsvException()
MissingFieldCsvException(SerializationInfo, StreamingContext)
Initializes a new instance of the MissingFieldCsvException class with serialized data.
Declaration
protected MissingFieldCsvException(SerializationInfo info, StreamingContext context)
Parameters
SerializationInfo
info
The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext
context
The StreamingContext that contains contextual information about the source or destination. |
MissingFieldCsvException(String)
Initializes a new instance of the MissingFieldCsvException class.
Declaration
public MissingFieldCsvException(string message)
Parameters
String
message
The message that describes the error. |
MissingFieldCsvException(String, Exception)
Initializes a new instance of the MissingFieldCsvException class.
Declaration
public MissingFieldCsvException(string message, Exception innerException)
Parameters
String
message
The message that describes the error. |
Exception
innerException
The exception that is the cause of the current exception. |
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
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
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. |