예제 #1
0
 /// <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;
 }
예제 #2
0
 private static string MessageHelper(string message, LineInfo lineInfo)
 {
     return(string.Concat(message ?? "Unknown parser error.", " ", lineInfo ?? LineInfo.NullValue));
 }
예제 #3
0
 /// <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;
 }