Exemple #1
0
 /// <summary>
 /// Default Ctor - all values must be set here as setters are marked private
 /// </summary>
 /// <param name="errMsg">Human friendly error message</param>
 /// <param name="errType">Type of the error encountered (as enum)</param>
 /// <param name="errLevel">Where the error occurred (as enum)</param>
 /// <param name="currLoop">The current loop being evaluated at time of error</param>
 /// <param name="currentSegmentValues">The segment that caused the error</param>
 public ParserError(string errMsg, X12ErrorTypes errType, X12ErrorLevel errLevel, LoopEntity currLoop, BaseFieldValues currentSegmentValues)
 {
     ErrorMessage   = errMsg;
     ErrorType      = errType;
     ErrorLevel     = errLevel;
     CurrentLoop    = currLoop;
     CurrentSegment = currentSegmentValues;
 }
Exemple #2
0
        internal void Add(LoopEntity loop)
        {
            if (SetUpChildDefinitions)
            {
                loop.SetUpDefinition();
            }

            LoopEntities.Add(loop);
        }
Exemple #3
0
 /// <summary>
 /// Default Ctor
 /// </summary>
 /// <param name="owningLoopEntity">the LoopEntity that holds this collection of segments</param>
 /// <param name="segDefName">the name of the loop (IE Loop2000A) usually passed down from the owning loop entity</param>
 internal SegmentCollection(LoopEntity owningLoopEntity, string segDefName) : this()
 {
     OwningLoopEntity      = owningLoopEntity;
     SegmentDefinitionName = segDefName;
 }