/// <summary> /// Creates an instance of a Reject message with a ParseFieldException object. /// </summary> public virtual IMessageReject CreateInstanceReject(ParseFieldException exParse) { IMessageReject reject = CreateInstanceReject(); reject.RefSeqNum = exParse.RefSeqNum; reject.Text = exParse.Text; return(reject); }
/// <summary> /// Creates an instance of the ParseFieldException class. /// </summary> protected virtual ParseFieldException CreateInstanceParseFieldException( string sMessage, Exception exInner, IField field, string sMessageRaw) { ParseFieldException ex = new ParseFieldException(sMessage, exInner); ex.RefSeqNum = ParseMsgSeqNum(sMessageRaw); ex.Text = string.Format("PARSE ERROR ON TAG {0}", field.Tag); return(ex); }