mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
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));
|
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