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

getRequiredLongParameter

open static fun getRequiredLongParameter(request: ServletRequest, name: String): Long

Get a long 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