import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
-import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import java.net.URI;
/**
* This class represents a {@code fields} parameter as defined in
- * <a href="https://datatracker.ietf.org/doc/html/rfc8040#section-4.8.3">RFC8040 section 4.8.3</a>.
+ * <a href="https://www.rfc-editor.org/rfc/rfc8040#section-4.8.3">RFC8040 section 4.8.3</a>.
*/
-@Beta
@NonNullByDefault
public final class FieldsParam implements RestconfQueryParam<FieldsParam> {
/**
try {
return parse(uriValue);
} catch (ParseException e) {
- throw new IllegalArgumentException(e.getMessage() + " [at offset " + e.getErrorOffset() + "]", e);
+ throw new IllegalArgumentException("Invalid " + uriName + " value: " + e.getMessage()
+ + " [at offset " + e.getErrorOffset() + "]", e);
}
}