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

public Class MissingMatrixVariableException

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

ServletRequestBindingException subclass that indicates that a matrix variable expected in the method parameters of an @RequestMapping method is not present among the matrix variables extracted from the URL.
Author
Juergen Hoeller
Since
5.1
See Also
MissingPathVariableException

Field Summary

Modifier and TypeField and Description
private final MethodParameter
private final String

Constructor Summary

AccessConstructor and Description
public
MissingMatrixVariableException(String
the name of the missing matrix variable
variableName
,
MethodParameter
the method parameter
parameter
)

Constructor for MissingMatrixVariableException.

public
MissingMatrixVariableException(String
the name of the missing matrix variable
variableName
,
MethodParameter
the method parameter
parameter
,
boolean
whether the value became null after conversion
missingAfterConversion
)

Constructor for use when a value was present but converted to null.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public final MethodParameter
getParameter()

Return the method parameter bound to the matrix variable.

public final String
getVariableName()

Return the expected name of the matrix variable.

Inherited from org.springframework.web.bind.MissingRequestValueException:
isMissingAfterConversion

Field Detail

parameterback to summary
private final MethodParameter parameter
variableNameback to summary
private final String variableName

Constructor Detail

MissingMatrixVariableExceptionback to summary
public MissingMatrixVariableException(String variableName, MethodParameter parameter)

Constructor for MissingMatrixVariableException.

Parameters
variableName:String

the name of the missing matrix variable

parameter:MethodParameter

the method parameter

MissingMatrixVariableExceptionback to summary
public MissingMatrixVariableException(String variableName, MethodParameter parameter, boolean missingAfterConversion)

Constructor for use when a value was present but converted to null.

Parameters
variableName:String

the name of the missing matrix variable

parameter:MethodParameter

the method parameter

missingAfterConversion:boolean

whether the value became null after conversion

Since
5.3.6

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getParameterback to summary
public final MethodParameter getParameter()

Return the method parameter bound to the matrix variable.

getVariableNameback to summary
public final String getVariableName()

Return the expected name of the matrix variable.