Throw IllegalArgumentException when cannot resolve attribute names

This commit is contained in:
Andrea Boriero 2022-01-13 19:15:58 +01:00
parent bb05cdadc6
commit 1e973a0b55

View File

@ -144,9 +144,11 @@ public SqmPath<?> get(String attributeName) {
if ( subNavigable == null ) {
throw new IllegalArgumentException(
String.format(
"Could not resolve attribute '%s' of '%s'",
attributeName, getNavigablePath()
new SemanticException(
String.format(
"Could not resolve attribute '%s' of '%s'",
attributeName, getNavigablePath()
)
)
);
}