forked from loafle/openapi-generator-original
NancyFx
- Detailed exception of not expected parse error
This commit is contained in:
parent
d1cf803e49
commit
a458e53e25
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user