public virtual void Panic(ErrorType errorType, params object[] args) { ToolMessage msg = new ToolMessage(errorType, args); Template msgST = GetMessageTemplate(msg); string outputMsg = msgST.Render(); if (FormatWantsSingleLineMessage()) { outputMsg = outputMsg.Replace('\n', ' '); } Panic(outputMsg); }
public virtual void ToolError(ErrorType errorType, Exception e, params object[] args) { ToolMessage msg = new ToolMessage(errorType, e, args); Emit(errorType, msg); }