/// <summary> /// Initializes a new instance of the ParserException with a message, the inner exception and the relevant query position information. /// </summary> public ParserException(string message, Exception inner, LineInfo lineInfo) : base(MessageHelper(message, lineInfo), inner) { LineInfo = lineInfo; }
private static string MessageHelper(string message, LineInfo lineInfo) { return(string.Concat(message ?? "Unknown parser error.", " ", lineInfo ?? LineInfo.NullValue)); }
/// <summary> /// Initializes a new instance of the ParserException with the relevant query position information. /// </summary> public ParserException(LineInfo lineInfo) : base(MessageHelper(null, lineInfo)) { LineInfo = lineInfo; }