Skip to content
Snippets Groups Projects
Commit 7ef9ada1 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

ConfigParser: ConfigMistake

parent 917a0aec
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,21 @@ class ConfigParseAttributeException: ConfigException
(Reason==null?".":$": {Reason}.");
}
}
class ConfigMistake: ConfigException
{
public ConfigValue Value;
public string Text;
public ConfigMistake(ConfigValue value, string text)
{
Value = value;
Text = text;
}
public override string ErrorString()
{
string name = Value.Section.SectionName != null ? $"{Value.Section.SectionName}: {Value.Key}" : Value.Key;
return $"{Value.Line}: {Value.FullName}: {Text}";
}
}
class ConfigValue
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment