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

getRequiredFloatParameters

open static fun getRequiredFloatParameters(request: ServletRequest, name: String): FloatArray

Get an array of float parameters, throwing an exception if not found or one is not a number.

Parameters

request - current HTTP request

name - the name of the parameter with multiple possible values

Exceptions

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