예제 #1
0
        /// <summary>
        /// Prepares and throws a plug-in execution exception.
        /// </summary>
        protected void ThrowException(string message)
        {
            PipeWrenchExecException ex = new PipeWrenchExecException(message);

            ex.Data.Add("CmdLine", CmdLine.Text);
            ex.Data.Add("Source", Source);
            ex.Data.Add("LineNo", PipeLineNo);
            throw ex;
        }
예제 #2
0
파일: Shared.cs 프로젝트: bblock/PipeWrench
 /// <summary>
 /// Prepares and throws a plug-in execution exception that includes a character position.
 /// </summary>
 protected void ThrowException(string message, int charPos)
 {
     PipeWrenchExecException ex = new PipeWrenchExecException(message);
      ex.Data.Add("CmdLine", CmdLine.Text);
      ex.Data.Add("Source", Source);
      ex.Data.Add("LineNo", PipeLineNo);
      ex.Data.Add("CharPos", charPos);
      throw ex;
 }