/// <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; }
internal void Add(LoopEntity loop) { if (SetUpChildDefinitions) { loop.SetUpDefinition(); } LoopEntities.Add(loop); }
/// <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; }