Class SpinnakerNetworkException
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
com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerNetworkException
- All Implemented Interfaces:
com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes,Serializable
Represents a network error while attempting to execute a retrofit http client request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpinnakerNetworkException(String message, SpinnakerNetworkException cause) Construct a SpinnakerNetworkException from another SpinnakerNetworkException (e.g.SpinnakerNetworkException(Throwable cause, okhttp3.Request request) Construct a SpinnakerNetworkException from retrofit2 with a cause (e.g.SpinnakerNetworkException(retrofit.RetrofitError e) Construct a SpinnakerNetworkException 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
-
SpinnakerNetworkException
Construct a SpinnakerNetworkException from retrofit2 with a cause (e.g. an exception sending a request or processing a response). -
SpinnakerNetworkException
Construct a SpinnakerNetworkException from another SpinnakerNetworkException (e.g. via newInstance). -
SpinnakerNetworkException
public SpinnakerNetworkException(retrofit.RetrofitError e) Construct a SpinnakerNetworkException corresponding to a RetrofitError.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classSpinnakerServerException
-