Skip to content

Exceptions

Piotr Szkudlarski edited this page Dec 11, 2018 · 5 revisions

CollectionOfComplexTypeException

When given configuration class contains not empty IDictionary of complex type library throws CollectionOfComplexTypeException. For examples:

public class KeyInDictionaryOfComplexDataConfiguration
{
    public Dictionary<TestConfiguration, int> ComplexDictionary { get; set; };
}

IniWrongFormatException

For given configuration class:

public struct TestConfigurationField
{    
    public int TestInt;
}

If library reads value from ini in wrong format e.g. "wrong_formatted_int" IniWrongFormatException is thrown, because we cannot bind string type value to int type.

Clone this wiki locally