summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java b/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
index d5f88ba99ec..6186f588a21 100644
--- a/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
+++ b/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query.properties;
+import com.yahoo.processing.IllegalInputException;
import com.yahoo.processing.request.CompoundName;
import com.yahoo.search.Query;
@@ -317,7 +318,7 @@ public class QueryProperties extends Properties {
if (e.getMessage() != null && e.getMessage().startsWith("Could not set"))
throw e;
else
- throw new IllegalArgumentException("Could not set '" + key + "' to '" + value + "'", e);
+ throw new IllegalInputException("Could not set '" + key + "' to '" + value + "'", e);
}
}
@@ -364,8 +365,8 @@ public class QueryProperties extends Properties {
}
private void throwIllegalParameter(String key,String namespace) {
- throw new IllegalArgumentException("'" + key + "' is not a valid property in '" + namespace +
- "'. See the query api for valid keys starting by '" + namespace + "'.");
+ throw new IllegalInputException("'" + key + "' is not a valid property in '" + namespace +
+ "'. See the query api for valid keys starting by '" + namespace + "'.");
}
@Override