Class Retrofit2SyncCall<T>

java.lang.Object
com.netflix.spinnaker.kork.retrofit.Retrofit2SyncCall<T>

public class Retrofit2SyncCall<T> extends Object
  • Constructor Details

    • Retrofit2SyncCall

      public Retrofit2SyncCall()
  • Method Details

    • execute

      public static <T> T execute(retrofit2.Call<T> call)
      Handle IOExceptions from Call.execute method centrally, instead of all places that make retrofit2 API calls.
      Type Parameters:
      T - Successful response body type.
      Throws:
      SpinnakerNetworkException - if IOException occurs.