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

public Class MissingRequestValueException

extends ServerWebInputException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.MethodParameter

ServerWebInputException subclass that indicates a missing request value such as a request header, cookie value, query parameter, etc.
Author
Rossen Stoyanchev
Since
6.0

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getLabel()

Return a label that describes the request value, e.g. "request header", "cookie value", etc. Use this to create a custom message.

public String
getName()

Return the name of the missing value, e.g. the name of the missing request header, or cookie, etc.

public Class<?>
getType()

Return the target type the value is converted when present.

Inherited from org.springframework.web.server.ServerWebInputException:
getMethodParameter

Field Detail

labelback to summary
private final String label
nameback to summary
private final String name
typeback to summary
private final Class<?> type

Constructor Detail

MissingRequestValueExceptionback to summary
public MissingRequestValueException(String name, Class<?> type, String label, MethodParameter parameter)

Method Detail

getLabelback to summary
public String getLabel()

Return a label that describes the request value, e.g. "request header", "cookie value", etc. Use this to create a custom message.

getNameback to summary
public String getName()

Return the name of the missing value, e.g. the name of the missing request header, or cookie, etc.

getTypeback to summary
public Class<?> getType()

Return the target type the value is converted when present.