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 Summary
ConstructorsConstructorDescriptionSpinnakerServerException(String message, SpinnakerServerException cause) Construct a SpinnakerServerException from another SpinnakerServerException (e.g.SpinnakerServerException(String message, Throwable cause, okhttp3.Request request) Construct a SpinnakerServerException from retrofit2 with a message and cause (e.g.SpinnakerServerException(Throwable cause, okhttp3.Request request) Construct a SpinnakerServerException from retrofit2 with a cause (e.g.SpinnakerServerException(okhttp3.Request request) Construct a SpinnakerServerException from retrofit2 with no cause (e.g.SpinnakerServerException(retrofit.RetrofitError e) Construct a SpinnakerServerException corresponding to a RetrofitError. -
Method Summary
Methods inherited from class com.netflix.spinnaker.kork.exceptions.SpinnakerException
getRetryable, getUserMessage, setRetryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes
getAdditionalAttributes
-
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
Construct a SpinnakerServerException from retrofit2 with a cause (e.g. an exception sending a request or processing a response). -
SpinnakerServerException
Construct a SpinnakerServerException from retrofit2 with a message and cause (e.g. an exception converting a response to the specified type). -
SpinnakerServerException
Construct a SpinnakerServerException from another SpinnakerServerException (e.g. via newInstance).
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.netflix.spinnaker.kork.exceptions.SpinnakerException
-