HHH-11250 - Improved exception message for invalid filter parameter name format.

This commit is contained in:
Chris Cranford 2016-11-16 14:57:32 -05:00
parent 7e160d7b49
commit 95b1e27902
1 changed files with 3 additions and 1 deletions

View File

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