Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rework body formatting wiring
[netconf.git]
/
protocol
/
restconf-api
/
src
/
main
/
java
/
org
/
opendaylight
/
restconf
/
api
/
query
/
WithDefaultsParam.java
diff --git
a/protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/query/WithDefaultsParam.java
b/protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/query/WithDefaultsParam.java
index c2a30c62d48e4c94b169822e3efefdf73114a24b..147fada3a80da1a89cc228509738a882d07e4b0c 100644
(file)
--- a/
protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/query/WithDefaultsParam.java
+++ b/
protocol/restconf-api/src/main/java/org/opendaylight/restconf/api/query/WithDefaultsParam.java
@@
-60,7
+60,11
@@
public enum WithDefaultsParam implements RestconfQueryParam<WithDefaultsParam> {
}
public static @NonNull WithDefaultsParam forUriValue(final String uriValue) {
}
public static @NonNull WithDefaultsParam forUriValue(final String uriValue) {
- return of(WithDefaultsMode.ofName(uriValue));
+ try {
+ return of(WithDefaultsMode.ofName(uriValue));
+ } catch (IllegalArgumentException e) {
+ throw new IllegalArgumentException("Invalid " + uriName + " value: " + e.getMessage(), e);
+ }
}
@Override
}
@Override