diff --git a/main/src/com/google/refine/browsing/facets/TextSearchFacet.java b/main/src/com/google/refine/browsing/facets/TextSearchFacet.java index 12e159565..4df79593a 100644 --- a/main/src/com/google/refine/browsing/facets/TextSearchFacet.java +++ b/main/src/com/google/refine/browsing/facets/TextSearchFacet.java @@ -35,8 +35,6 @@ package com.google.refine.browsing.facets; import java.util.regex.Pattern; -import org.json.JSONException; - import com.fasterxml.jackson.annotation.JsonProperty; import com.google.refine.browsing.FilteredRecords; import com.google.refine.browsing.FilteredRows; @@ -138,7 +136,7 @@ public class TextSearchFacet implements Facet { _config._caseSensitive ? 0 : Pattern.CASE_INSENSITIVE); } catch (java.util.regex.PatternSyntaxException e) { PatternSyntaxExceptionParser err = new PatternSyntaxExceptionParser(e); - throw new JSONException(err.getUserMessage()); + throw new IllegalArgumentException(err.getUserMessage()); } } else if (!_config._caseSensitive) { _query = _query.toLowerCase();