Class SpinnakerServerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.netflix.spinnaker.kork.exceptions.SpinnakerException
com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerServerException
All Implemented Interfaces:
com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes, Serializable
Direct Known Subclasses:
SpinnakerConversionException, SpinnakerHttpException, SpinnakerNetworkException

public class SpinnakerServerException extends com.netflix.spinnaker.kork.exceptions.SpinnakerException
Represents an error while attempting to execute a retrofit http client request.
See Also:
  • Constructor Details

    • SpinnakerServerException

      public SpinnakerServerException(retrofit.RetrofitError e)
      Construct a SpinnakerServerException corresponding to a RetrofitError.
    • SpinnakerServerException

      public SpinnakerServerException(okhttp3.Request request)
      Construct a SpinnakerServerException from retrofit2 with no cause (e.g. a non-200 http response).
    • SpinnakerServerException

      public SpinnakerServerException(Throwable cause, okhttp3.Request request)
      Construct a SpinnakerServerException from retrofit2 with a cause (e.g. an exception sending a request or processing a response).
    • SpinnakerServerException

      public SpinnakerServerException(String message, Throwable cause, okhttp3.Request request)
      Construct a SpinnakerServerException from retrofit2 with a message and cause (e.g. an exception converting a response to the specified type).
    • SpinnakerServerException

      public SpinnakerServerException(String message, SpinnakerServerException cause)
      Construct a SpinnakerServerException from another SpinnakerServerException (e.g. via newInstance).
  • Method Details

    • newInstance

      public SpinnakerServerException newInstance(String message)
      Overrides:
      newInstance in class com.netflix.spinnaker.kork.exceptions.SpinnakerException