Class SpinnakerConversionException
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.SpinnakerConversionException
- All Implemented Interfaces:
com.netflix.spinnaker.kork.exceptions.HasAdditionalAttributes,Serializable
Wraps an exception converting a successful retrofit http response body to its indicated type
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpinnakerConversionException(String message, SpinnakerConversionException cause) Construct a SpinnakerConversionException from another SpinnakerConversionException (e.g.SpinnakerConversionException(String message, Throwable cause, okhttp3.Request request) Construct a SpinnakerServerException from retrofit2 with a message and cause (e.g.SpinnakerConversionException(retrofit.RetrofitError e) Construct a SpinnakerConversionException 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
-
SpinnakerConversionException
Construct a SpinnakerServerException from retrofit2 with a message and cause (e.g. an exception converting a response to the specified type). -
SpinnakerConversionException
Construct a SpinnakerConversionException from another SpinnakerConversionException (e.g. via newInstance). -
SpinnakerConversionException
public SpinnakerConversionException(retrofit.RetrofitError e) Construct a SpinnakerConversionException corresponding to a RetrofitError.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classSpinnakerServerException
-