Skip to content

Commit

Permalink
Remove ElasticsearchIllegalArgumentException and `ElasticsearchIlle…
Browse files Browse the repository at this point in the history
…galStateException` in favor of the JDK one

Related to #10794

Closes #51.
  • Loading branch information
dadoonet committed Apr 29, 2015
1 parent c70e32d commit bee93a5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.api.services.compute.model.Instance;
import com.google.api.services.compute.model.InstanceList;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.common.base.Function;
import org.elasticsearch.common.collect.Iterables;
import org.elasticsearch.common.collect.Lists;
Expand Down Expand Up @@ -141,7 +140,7 @@ public synchronized Compute client() {
.build();
} catch (Exception e) {
logger.warn("unable to start GCE discovery service: {} : {}", e.getClass().getName(), e.getMessage());
throw new ElasticsearchIllegalArgumentException("unable to start GCE discovery service", e);
throw new IllegalArgumentException("unable to start GCE discovery service", e);
}

return this.client;
Expand Down

0 comments on commit bee93a5

Please sign in to comment.