Class ParseException
- Namespace
- NuvTools.Report.Parsing
- Assembly
- NuvTools.Report.dll
Exception thrown when a record line or field cannot be parsed.
public sealed class ParseException : Exception, ISerializable
- Inheritance
-
ParseException
- Implements
- Inherited Members
Remarks
Initializes a new instance of ParseException.
Constructors
ParseException(string, int, int?, string?, Exception?)
Exception thrown when a record line or field cannot be parsed.
public ParseException(string message, int lineNumber, int? fieldIndex = null, string? rawLine = null, Exception? innerException = null)
Parameters
Remarks
Initializes a new instance of ParseException.
Properties
FieldIndex
Gets the 1-based field index where the error occurred, if applicable.
public int? FieldIndex { get; }
Property Value
- int?
LineNumber
Gets the 1-based line number where the error occurred.
public int LineNumber { get; }
Property Value
RawLine
Gets the raw line content that caused the error.
public string? RawLine { get; }