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.
26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
namespace F4SD.DocuEngine.DocuEngineParser.Exceptions
|
|
{
|
|
internal class SyntaxErrorException : DocuEngineParserException
|
|
{
|
|
private const string errorMessageTemplate = "<<Syntax Error | Expected Characters: \"{0}\" | Actual Characters: \"{1}\">>";
|
|
private const string defaultMessage = "You're syntax is wrong. Get good.";
|
|
|
|
public SyntaxErrorException(string currentText) : base(defaultMessage)
|
|
{
|
|
CurrentText = currentText;
|
|
}
|
|
public SyntaxErrorException(string expected, string actual) : base(defaultMessage)
|
|
{
|
|
PrintedErrorMessage = string.Format(errorMessageTemplate, expected, actual);
|
|
}
|
|
public SyntaxErrorException(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;
|
|
}
|
|
}
|
|
} |