Show / Hide Table of Contents

Class MalformedCsvException

Represents the exception that is thrown when a CSV file is malformed.

Inheritance
Object
Exception
MalformedCsvException
MissingFieldCsvException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetType()
System.Exception.Data
Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
Exception.HelpLink
System.Exception.Source
Exception.HResult
System.Exception.SerializeObjectState
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
Object.MemberwiseClone()
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
System.Exception.Message

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.

Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Extension Methods

ObjectExtensions.DeepClone<T>(T)
ExceptionExtensions.GetSleepDuration(Exception, TimeSpan)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX