/// <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; }
/// <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; }