spring-framework / org.springframework.web.bind / MissingPathVariableException

MissingPathVariableException

open class MissingPathVariableException : ServletRequestBindingException

ServletRequestBindingException subclass that indicates that a path variable expected in the method parameters of an @RequestMapping method is not present among the URI variables extracted from the URL. Typically that means the URI template does not match the path variable name declared on the method parameter.

Author
Rossen Stoyanchev

Since
4.2

Constructors

<init>

MissingPathVariableException(variableName: String, parameter: MethodParameter)

Constructor for MissingPathVariableException.

Properties

message

open val message: String

Functions

getParameter

fun getParameter(): MethodParameter

Return the method parameter bound to the path variable.

getVariableName

fun getVariableName(): String

Return the expected name of the path variable.