DelimitedFormatException Class
Definition
- Assembly
- Bodu.Text.Delimited.dll
- Package
- Bodu.Text.Delimited 1.0.0
Represents an error that occurs when delimited (CSV/TSV) data is malformed, such as an unterminated quoted field or a record whose field count violates the configured policy.
public sealed class DelimitedFormatException : FormatException, ISerializable
- Inheritance
-
DelimitedFormatException
- Implements
- Inherited Members
- Extension Methods
Constructors
DelimitedFormatException()
Initializes a new instance of the DelimitedFormatException class.
public DelimitedFormatException()
DelimitedFormatException(string)
Initializes a new instance of the DelimitedFormatException class.
public DelimitedFormatException(string message)
Parameters
messagestringThe error message.
DelimitedFormatException(string, Exception)
Initializes a new instance of the DelimitedFormatException class.
public DelimitedFormatException(string message, Exception innerException)
Parameters
DelimitedFormatException(string, int, int)
Initializes a new instance of the DelimitedFormatException class and records the source location at which the parse error was detected.
public DelimitedFormatException(string message, int line, int offset)
Parameters
Properties
LineNumber
Gets the 1-based line number at which the parse error was detected, when available.
public int? LineNumber { get; }
Property Value
Offset
Gets the zero-based byte offset at which the parse error was detected, when available.
public int? Offset { get; }
Property Value
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |