Class MalformedCsvException
Represents the exception that is thrown when a CSV file is malformed.
Inherited Members
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
[Serializable]
public class MalformedCsvException : Exception, ISerializable, _Exception
Constructors
MalformedCsvException()
Initializes a new instance of the MalformedCsvException class.
Declaration
public MalformedCsvException()
MalformedCsvException(SerializationInfo, StreamingContext)
Initializes a new instance of the MalformedCsvException class with serialized data.
Declaration
protected MalformedCsvException(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. |
MalformedCsvException(String)
Initializes a new instance of the MalformedCsvException class.
Declaration
public MalformedCsvException(string message)
Parameters
String
message
The message that describes the error. |
MalformedCsvException(String, Exception)
Initializes a new instance of the MalformedCsvException class.
Declaration
public MalformedCsvException(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. |
MalformedCsvException(String, Int32, Int64, Int32)
Initializes a new instance of the MalformedCsvException class.
Declaration
public MalformedCsvException(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. |
MalformedCsvException(String, Int32, Int64, Int32, Exception)
Initializes a new instance of the MalformedCsvException class.
Declaration
public MalformedCsvException(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. |
Properties
CurrentFieldIndex
Gets the current field index.
Declaration
public int CurrentFieldIndex { get; }
Property Value
System.Int32
The current record index. |
CurrentPosition
Gets the current position in the raw data.
Declaration
public int CurrentPosition { get; }
Property Value
System.Int32
The current position in the raw data. |
CurrentRecordIndex
Gets the current record index.
Declaration
public long CurrentRecordIndex { get; }
Property Value
System.Int64
The current record index. |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
String
A message that describes the current exception. |
Overrides
RawData
Gets the raw data when the error occured.
Declaration
public string RawData { get; }
Property Value
String
The raw data when the error occured. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(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. |