Message |
The MessageErrorContext type exposes the following members.
| Name | Description | |
|---|---|---|
| MessageErrorContext | Initializes a new instance of the MessageErrorContext class. | |
| MessageErrorContext(String, String, String, String, String) | Initializes a new instance of the MessageErrorContext class. | |
| MessageErrorContext(String, String, String, String, String, MessageErrorCode) | Initializes a new instance of the MessageErrorContext class. |
| Name | Description | |
|---|---|---|
| Codes | The syntax error codes. | |
| ControlNumber | The EDI message control number. | |
| Edition | The EDI message edition. | |
| Errors | The EDI segment error contexts. | |
| HasErrors | Indicates if the EDI message had any errors when parsed. | |
| Index | The index in the original stream or in the current interchange. | |
| Name | The type of EDI message (or its tag). | |
| Release | The EDI message release. | |
| SpecRef | The spec reference. | |
| ValidatedSegmentsCount | The number of validated segments. |
| Name | Description | |
|---|---|---|
| Add(MessageErrorCode) | Adds a syntax error code to the error codes collection. | |
| Add(SegmentErrorContext) | Merges EDI segment contexts into the errors collection. | |
| AddRange(IEnumerableMessageErrorCode) | Merges error codes into the error codes collection. | |
| AddRange(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. | |
| Flatten | 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. | |
| Sort | Sorts the EDI segment error contexts by position |