Extracts a parameter of the specified type, optionally checking if it is valid.
Extracts a parameter of the specified type, optionally checking if it is valid.
parameter name.
function which checks if the parameter value is valid. If it returns false
,
IllegalArgumentException
is thrown.
message to pass to the exception, if the value fails validation.
the parameter value.
IllegalArgumentException
if the parameter value fails validation.
Extension to ActionResult which allows to extract parameters and results.