5327 improve error code 1227 message (#5328)

* Improve error code 1227 message

* spotless
This commit is contained in:
VK-SMILECDR 2023-09-21 15:51:37 -04:00 committed by GitHub
parent 2b7ebbcb27
commit cfa5e2ef65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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());
}
}