@@ -189,7 +189,7 @@ protected Request multipleQueriesAsync(@NonNull List<Query> queries, @NonNull Co
189
189
* @param handler A Completion handler that will be notified of the request's outcome.
190
190
* @return A cancellable request.
191
191
*/
192
- public Request searchForFacetValues (@ NonNull String facetName , @ NonNull String text , @ NonNull final CompletionHandler handler ) throws AlgoliaException {
192
+ public Request searchForFacetValues (@ NonNull String facetName , @ NonNull String text , @ NonNull final CompletionHandler handler ) {
193
193
return searchForFacetValues (facetName , text , null , handler );
194
194
}
195
195
@@ -202,7 +202,7 @@ public Request searchForFacetValues(@NonNull String facetName, @NonNull String t
202
202
* @param handler A Completion handler that will be notified of the request's outcome.
203
203
* @return A cancellable request.
204
204
*/
205
- public Request searchForFacetValues (@ NonNull String facetName , @ NonNull String facetText , @ Nullable Query query , @ NonNull final CompletionHandler handler ) throws AlgoliaException {
205
+ public Request searchForFacetValues (@ NonNull String facetName , @ NonNull String facetText , @ Nullable Query query , @ NonNull final CompletionHandler handler ) {
206
206
try {
207
207
final String path = "/1/indexes/" + getEncodedIndexName () + "/facets/" + URLEncoder .encode (facetName , "UTF-8" ) + "/query" ;
208
208
final Query params = (query != null ? new Query (query ) : new Query ());
@@ -218,7 +218,7 @@ protected JSONObject run() throws AlgoliaException {
218
218
}
219
219
}.start ();
220
220
} catch (UnsupportedEncodingException | JSONException e ) {
221
- throw new AlgoliaException ( e . getMessage ());
221
+ throw new RuntimeException ( e ); // should never happen
222
222
}
223
223
}
224
224
0 commit comments