public long checkValidValue (long value, TemporalField field)

Checks that the specified value is valid.

This validates that the value is within the valid range of values. The field is only used to improve the error message.

Parameters:
value    the value to check
field    the field being checked, may be null

Returns:  the value that was passed in

See also:
isValidValue(long)