Click or drag to resize

MessageErrorContext Class

Information for the data, error codes and the context of the EDI message that failed.
Inheritance Hierarchy
SystemObject
  EdiFabric.Core.Model.Edi.ErrorContextsErrorContext
    EdiFabric.Core.Model.Edi.ErrorContextsMessageErrorContext

Namespace: EdiFabric.Core.Model.Edi.ErrorContexts
Assembly: EdiFabric (in EdiFabric.dll) Version: 10.7.4.0
Syntax
[SerializableAttribute]
public sealed class MessageErrorContext : ErrorContext

The MessageErrorContext type exposes the following members.

Constructors
 NameDescription
Public methodMessageErrorContext Initializes a new instance of the MessageErrorContext class.
Public methodMessageErrorContext(String, String, String, String, String) Initializes a new instance of the MessageErrorContext class.
Public methodMessageErrorContext(String, String, String, String, String, MessageErrorCode) Initializes a new instance of the MessageErrorContext class.
Top
Properties
 NameDescription
Public propertyCodes The syntax error codes.
Public propertyControlNumber The EDI message control number.
Public propertyEdition The EDI message edition.
Public propertyErrors The EDI segment error contexts.
Public propertyHasErrors Indicates if the EDI message had any errors when parsed.
Public propertyIndex The index in the original stream or in the current interchange.
Public propertyName The type of EDI message (or its tag).
Public propertyRelease The EDI message release.
Public propertySpecRef The spec reference.
Public propertyValidatedSegmentsCount The number of validated segments.
Top
Methods
 NameDescription
Public methodAdd(MessageErrorCode) Adds a syntax error code to the error codes collection.
Public methodAdd(SegmentErrorContext) Merges EDI segment contexts into the errors collection.
Public methodAddRange(IEnumerableMessageErrorCode) Merges error codes into the error codes collection.
Public methodAddRange(IEnumerableSegmentErrorContext) Merges an EDI segment context into the errors collection. There can be only one reference for a segment, containing all the errors for that segment. A segment is identified by its name (or segment ID) and its position.
Public methodFlatten Flattens the error hierarchy. Iterates through all errors in all contexts and outputs an easy to read error message for each error or code found.
Public methodSort Sorts the EDI segment error contexts by position
Top
See Also