HttpMessageNotReadableException provides access to HttpInputMessage
Issue: SPR-15588
This commit is contained in:
@@ -212,7 +212,7 @@ public abstract class AbstractMessageConverterMethodArgumentResolver implements
|
||||
}
|
||||
}
|
||||
catch (IOException ex) {
|
||||
throw new HttpMessageNotReadableException("I/O error while reading input message", ex);
|
||||
throw new HttpMessageNotReadableException("I/O error while reading input message", ex, inputMessage);
|
||||
}
|
||||
|
||||
if (body == NO_VALUE) {
|
||||
|
||||
@@ -157,7 +157,7 @@ public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter
|
||||
Object arg = readWithMessageConverters(inputMessage, parameter, paramType);
|
||||
if (arg == null && checkRequired(parameter)) {
|
||||
throw new HttpMessageNotReadableException("Required request body is missing: " +
|
||||
parameter.getExecutable().toGenericString());
|
||||
parameter.getExecutable().toGenericString(), inputMessage);
|
||||
}
|
||||
return arg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user