Top Description Fields Constructors Methods
org.springframework.web.bind

public Class MissingRequestValueException

extends ServletRequestBindingException
Class Inheritance
Known Direct Subclasses
org.springframework.web.bind.MissingServletRequestParameterException, org.springframework.web.bind.MissingMatrixVariableException, org.springframework.web.bind.MissingPathVariableException, org.springframework.web.bind.MissingRequestCookieException, org.springframework.web.bind.MissingRequestHeaderException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.http.ProblemDetail, org.springframework.lang.Nullable

Base class for ServletRequestBindingException exceptions that could not bind because the request value is required but is either missing or otherwise resolves to null after conversion.
Author
Rossen Stoyanchev
Since
5.3.6

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
MissingRequestValueException(String msg)

Constructor with a message only.

public
MissingRequestValueException(String msg, boolean missingAfterConversion)

Constructor with a message and a flag that indicates whether a value was present but became null after conversion.

protected
MissingRequestValueException(String msg, boolean missingAfterConversion, String messageDetailCode, Object[] messageDetailArguments)

Constructor with a given ProblemDetail, and a org.springframework.context.MessageSource code and arguments to resolve the detail message with.

Method Summary

Modifier and TypeMethod and Description
public boolean
isMissingAfterConversion()

Whether the request value was present but converted to null, e.g. via org.springframework.core.convert.support.IdToEntityConverter.

Inherited from org.springframework.web.bind.ServletRequestBindingException:
getBodygetDetailMessageArgumentsgetDetailMessageCodegetStatusCode

Field Detail

missingAfterConversionback to summary
private final boolean missingAfterConversion

Constructor Detail

MissingRequestValueExceptionback to summary
public MissingRequestValueException(String msg)

Constructor with a message only.

MissingRequestValueExceptionback to summary
public MissingRequestValueException(String msg, boolean missingAfterConversion)

Constructor with a message and a flag that indicates whether a value was present but became null after conversion.

MissingRequestValueExceptionback to summary
protected MissingRequestValueException(String msg, boolean missingAfterConversion, String messageDetailCode, Object[] messageDetailArguments)

Constructor with a given ProblemDetail, and a org.springframework.context.MessageSource code and arguments to resolve the detail message with.

Since
6.0

Method Detail

isMissingAfterConversionback to summary
public boolean isMissingAfterConversion()

Whether the request value was present but converted to null, e.g. via org.springframework.core.convert.support.IdToEntityConverter.