Rework body formatting wiring
[netconf.git] / protocol / restconf-api / src / main / java / org / opendaylight / restconf / api / query / FieldsParam.java
index a9762f0991b23eb90a0ec8c00b6b025d3fde1c2e..d81d8000b4f9de1aa3859f67409f58cadccf090d 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yangtools.concepts.Immutable;
 
 /**
  * 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>.
  */
 @NonNullByDefault
 public final class FieldsParam implements RestconfQueryParam<FieldsParam> {
@@ -114,7 +114,8 @@ 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);
         }
     }