static string FormatMessage(BnfState state, string message) { if (message.Length == 0) { return(state.Bnf.FileName + "\r\n\r\n" + state.ToString().Replace("\n", "\r\n\r\n")); } return(state.Bnf.FileName + "\r\n\r\n" + message + "\r\n\r\n" + state.ToString().Replace("\n", "\r\n\r\n")); }
public BnfStateException(BnfState state, string message) : base(FormatMessage(state, message)) { }