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.
25 lines
1.1 KiB
C#
25 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
} |