feat: expand cockpit integrations and support workflows
Add Phoenix remote desktop, action connector, documentation engine, and gamification support. Refactor support-case processing and search/action UI, and update installer assets and dependencies.
This commit is contained in:
25
F4SD-Docu-Engine/DocuEngineParser/VariableErrorException.cs
Normal file
25
F4SD-Docu-Engine/DocuEngineParser/VariableErrorException.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace F4SD.DocuEngine.DocuEngineParser
|
||||
{
|
||||
internal class VariableErrorException : DocuEngineParserException
|
||||
{
|
||||
private const string errorMessageTemplate = "<<Variable Error | \"{0}\" can't be converted to type \"{1}\">>";
|
||||
private const string defaultMessage = "Your variable is the wrong type. Get good.";
|
||||
public VariableErrorException(string currentText) : base(defaultMessage)
|
||||
{
|
||||
CurrentText = currentText;
|
||||
}
|
||||
public VariableErrorException(string expected, string actual) : base(defaultMessage)
|
||||
{
|
||||
PrintedErrorMessage = string.Format(errorMessageTemplate, expected, actual);
|
||||
}
|
||||
public VariableErrorException(string currentText, string expected, string actual) : base(defaultMessage)
|
||||
{
|
||||
CurrentText = currentText;
|
||||
PrintedErrorMessage = string.Format(errorMessageTemplate, expected, actual);
|
||||
}
|
||||
public override void AddToCurrentText(string text)
|
||||
{
|
||||
CurrentText = text + CurrentText;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user