internal static FormatException Format(string messageFormat, IPostitionInfo pos, params object[] messageArgs) { string message; if (pos != null) { message = String.Format("At line {0}, pos {1}: {2}", pos.LineNumber, pos.LinePosition, Error.formatMessage(messageFormat, messageArgs)); } else { message = Error.formatMessage(messageFormat, messageArgs); } return(new FormatException(message)); }
internal static FormatException Format(string messageFormat, IPostitionInfo pos, params object[] messageArgs) { string message; if (pos != null) { message = String.Format("At line {0}, pos {1}: {2}", pos.LineNumber, pos.LinePosition, Error.formatMessage(messageFormat, messageArgs)); } else message = Error.formatMessage(messageFormat, messageArgs); return new FormatException(message); }