Class SpinnakerServerException

  • All Implemented Interfaces:
    com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes, java.io.Serializable
    Direct Known Subclasses:
    SpinnakerHttpException, SpinnakerNetworkException

    public class SpinnakerServerException
    extends com.netflix.spinnaker.kork.exceptions.SpinnakerException
    An exception that exposes the message of a RetrofitError.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SpinnakerServerException​(retrofit.RetrofitError e)
      Parses the message from the SpinnakerServerException.RetrofitErrorResponseBody of a RetrofitError.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class com.netflix.spinnaker.kork.exceptions.SpinnakerException

        getRetryable, getUserMessage, setRetryable
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes

        getAdditionalAttributes
    • Constructor Detail

      • SpinnakerServerException

        public SpinnakerServerException​(retrofit.RetrofitError e)
        Parses the message from the SpinnakerServerException.RetrofitErrorResponseBody of a RetrofitError.
        Parameters:
        e - The RetrofitError thrown by an invocation of the RestAdapter
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable