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
messagestringA message that describes the error.
lineNumberlongThe 1-based line number of the offending line.
lineContentstringThe raw content of the offending line.
expectedWidthintThe minimum number of characters required to read all fields.
actualWidthintThe actual number of characters in the line.
Properties
ActualWidth
The actual number of characters in the offending line.
public int ActualWidth { get; }
Property Value
ExpectedWidth
The minimum number of characters required to read all defined fields, including any delimiter contribution.
public int ExpectedWidth { get; }