# CsvParseError

Represents a parse error collected while reading CSV data.

Class 

`OfficeIMO.CSV`

**Namespace**

`OfficeIMO.CSV`

**Assembly**

`OfficeIMO.CSV`

**Source revision**

`bff9a667c24d` with working tree changes

**Source**

[CsvParseError.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.CSV/CsvParseError.cs#L11)

**Modifiers**

sealed

Represents a parse error collected while reading CSV data.

## Inheritance

- object
- CsvParseError

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [CsvLoadOptions.ParseErrors](/api/csv/officeimo-csv-csvloadoptions/#property-parseerrors)
- Property [CsvReaderOptions.ParseErrors](/api/csv/officeimo-csv-csvreaderoptions/#property-parseerrors)

Filter members 

Show inherited

## Constructors

`public CsvParseError(int lineNumber, string message, Exception exception)` [#](#constructor-ctor-int32-string-exception)

[CsvParseError.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.CSV/CsvParseError.cs#L11)

Initializes a collected parse error.

Parameters

**lineNumber int required**

**message string required**

**exception System.Exception required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int LineNumber { get; }` [#](#property-linenumber)

[CsvParseError.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.CSV/CsvParseError.cs#L21)

Gets the line where parsing failed.

`public string Message { get; }` [#](#property-message)

[CsvParseError.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.CSV/CsvParseError.cs#L26)

Gets the parse error message.

`public Exception Exception { get; }` [#](#property-exception)

[CsvParseError.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.CSV/CsvParseError.cs#L31)

Gets the original exception.

<!-- PowerForge markdown artifact sha256:6D0AB4282A728D2A06774C614DEF662C763739BB207D5FA2484A650A366F6882 -->
