- Detailed exception of not expected parse error
This commit is contained in:
Jakub Malek 2016-06-02 11:14:05 +02:00 committed by Jakub Malek
parent d1cf803e49
commit a458e53e25

View File

@ -255,6 +255,11 @@ namespace {{packageName}}.{{packageContext}}.Utils
{
throw InvalidParameterFormat(parameter, typeof (short));
}
catch (Exception e)
{
throw new InvalidOperationException(Strings.Format("Unable to parse parameter: '{0}' with value: '{1}' to {2}",
parameter.Name, parameter.Value, typeof(T)), e);
}
};
}