Skip to content

Commit

Permalink
Initialize propertyName in TypeMismatchException
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Jun 13, 2023
1 parent 96895c7 commit 6b50b7b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -196,6 +196,7 @@ private Object applyConversion(@Nullable Object value, NamedValueInfo namedValue
throw new ServerErrorException("Conversion not supported.", parameter, ex);
}
catch (TypeMismatchException ex) {
ex.initPropertyName(namedValueInfo.name);
throw new ServerWebInputException("Type mismatch.", parameter, ex);
}
return value;
Expand Down

0 comments on commit 6b50b7b

Please sign in to comment.