Skip to content

Commit

Permalink
refactor(retrofit): Replace the RetrofitExceptionHandler with Spinnak…
Browse files Browse the repository at this point in the history
…erServerExceptionHandler

As RetrofitExceptionHandler have been dismantled from [orca](spinnaker/orca#4716), now replacing it with SpinnakerServerExceptionHandler.
  • Loading branch information
j-sandy committed May 15, 2024
1 parent 41c01eb commit d6b8923
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit d6b8923

Please sign in to comment.