5327 improve error code 1227 message (#5328)
* Improve error code 1227 message * spotless
This commit is contained in:
parent
2b7ebbcb27
commit
cfa5e2ef65
|
@ -183,16 +183,15 @@ public class UriPredicateBuilder extends BaseSearchParamPredicateBuilder {
|
|||
myColumnUri, generatePlaceholder(createRightMatchLikeExpression(value)));
|
||||
} else {
|
||||
throw new IllegalArgumentException(Msg.code(1226)
|
||||
+ String.format(
|
||||
"Unsupported operator specified in _filter clause, %s",
|
||||
theOperation.toString()));
|
||||
+ String.format("Unsupported operator specified in _filter clause, %s", theOperation));
|
||||
}
|
||||
|
||||
codePredicates.add(uriPredicate);
|
||||
}
|
||||
|
||||
} else {
|
||||
throw new IllegalArgumentException(Msg.code(1227) + "Invalid URI type: " + nextOr.getClass());
|
||||
throw new IllegalArgumentException(Msg.code(1227) + "Invalid URI type: expected "
|
||||
+ UriParam.class.getName() + ", but was " + nextOr.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue