Esempio n. 1
0
 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"));
 }
Esempio n. 2
0
 public BnfStateException(BnfState state, string message)
     : base(FormatMessage(state, message))
 {
 }