HHH-11250 - Improved exception message for invalid filter parameter name format.
This commit is contained in:
parent
7e160d7b49
commit
95b1e27902
|
@ -141,7 +141,9 @@ public class LoadQueryInfluencers implements Serializable {
|
|||
public static String[] parseFilterParameterName(String filterParameterName) {
|
||||
int dot = filterParameterName.lastIndexOf( '.' );
|
||||
if ( dot <= 0 ) {
|
||||
throw new IllegalArgumentException( "Invalid filter-parameter name format" );
|
||||
throw new IllegalArgumentException(
|
||||
"Invalid filter-parameter name format [" + filterParameterName + "]; expecting {filter-name}.{param-name}"
|
||||
);
|
||||
}
|
||||
final String filterName = filterParameterName.substring( 0, dot );
|
||||
final String parameterName = filterParameterName.substring( dot + 1 );
|
||||
|
|
Loading…
Reference in New Issue