Class LineTooShortException

Namespace
Wolfgang.Etl.FixedWidth.Exceptions
Assembly
Wolfgang.Etl.FixedWidth.dll

The exception thrown when a line in a fixed-width file is shorter than the total width required to read all defined fields. Derives from MalformedLineException.

public sealed class LineTooShortException : MalformedLineException, ISerializable
Inheritance
LineTooShortException
Implements
Inherited Members

Constructors

LineTooShortException(string, long, string, int, int)

Initializes a new instance of LineTooShortException with full context.

public LineTooShortException(string message, long lineNumber, string lineContent, int expectedWidth, int actualWidth)

Parameters

message string

A message that describes the error.

lineNumber long

The 1-based line number of the offending line.

lineContent string

The raw content of the offending line.

expectedWidth int

The minimum number of characters required to read all fields.

actualWidth int

The actual number of characters in the line.

Properties

ActualWidth

The actual number of characters in the offending line.

public int ActualWidth { get; }

Property Value

int

ExpectedWidth

The minimum number of characters required to read all defined fields, including any delimiter contribution.

public int ExpectedWidth { get; }

Property Value

int