Remove ElasticsearchIllegalArgumentException and ElasticsearchIllegalStateException in favor of the JDK one

Related to https://github.com/elastic/elasticsearch/issues/10794

Closes #51.
This commit is contained in:
David Pilato 2015-04-29 12:26:44 +02:00
parent c70e32d119
commit bee93a51fe

View File

@ -28,7 +28,6 @@ import com.google.api.services.compute.Compute;
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;
@ -141,7 +140,7 @@ public class GceComputeServiceImpl extends AbstractLifecycleComponent<GceCompute
.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;