diff --git a/kayenta-core/src/main/java/com/netflix/kayenta/retrofit/config/RetrofitClientConfiguration.java b/kayenta-core/src/main/java/com/netflix/kayenta/retrofit/config/RetrofitClientConfiguration.java index 6bfed46a0..3037cc929 100644 --- a/kayenta-core/src/main/java/com/netflix/kayenta/retrofit/config/RetrofitClientConfiguration.java +++ b/kayenta-core/src/main/java/com/netflix/kayenta/retrofit/config/RetrofitClientConfiguration.java @@ -20,7 +20,6 @@ import com.netflix.kayenta.atlas.config.KayentaSerializationConfigurationProperties; import com.netflix.kayenta.config.KayentaConfiguration; import com.netflix.spinnaker.config.OkHttpClientConfiguration; -import com.netflix.spinnaker.orca.retrofit.exceptions.RetrofitExceptionHandler; import com.netflix.spinnaker.orca.retrofit.exceptions.SpinnakerServerExceptionHandler; import com.squareup.okhttp.ConnectionPool; import com.squareup.okhttp.OkHttpClient; @@ -52,12 +51,6 @@ OkHttpClient okHttpClient(OkHttpClientConfiguration okHttpClientConfig) { return okHttpClient; } - @Bean - @Order(Ordered.HIGHEST_PRECEDENCE) - RetrofitExceptionHandler retrofitExceptionHandler() { - return new RetrofitExceptionHandler(); - } - @Bean @Order(Ordered.HIGHEST_PRECEDENCE) SpinnakerServerExceptionHandler spinnakerServerExceptionHandler() {