spring-framework / org.springframework.web.bind / ServletRequestUtils / getRequiredDoubleParameter

getRequiredDoubleParameter

open static fun getRequiredDoubleParameter(request: ServletRequest, name: String): Double

Get a double parameter, throwing an exception if it isn't found or isn't a number.

Parameters

request - current HTTP request

name - the name of the parameter

Exceptions

ServletRequestBindingException - a subclass of ServletException, so it doesn't need to be caught