Enum MalformedLineHandling

Namespace
Wolfgang.Etl.FixedWidth.Enums
Assembly
Wolfgang.Etl.FixedWidth.dll

Specifies how the extractor behaves when it encounters a malformed line (e.g. a line that is shorter than expected) or a field that cannot be parsed.

public enum MalformedLineHandling

Fields

ReturnDefault = 2

Return a default (empty) instance of the target type for the malformed line. All fields will contain their type's default value — the partial state of any fields that were successfully read before the failure is discarded.

Skip = 1

Skip the malformed line entirely and continue processing the next line. The skipped line count is tracked via CurrentSkippedItemCount.

ThrowException = 0

Throw a MalformedLineException when a malformed line is encountered. This is the default behavior.