mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-08 16:19:48 +00:00
HttpMessageNotReadableException provides access to HttpInputMessage
Issue: SPR-15588
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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