Package com.azure.core.exception
Class DecodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.core.exception.DecodeException
- All Implemented Interfaces:
Serializable
Error raised during response deserialization. The HTTP response could not be decoded.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecodeException(String message, HttpResponse response) Initializes a new instance of the DecodeException class.DecodeException(String message, HttpResponse response, Object value) Initializes a new instance of the DecodeException class.DecodeException(String message, HttpResponse response, Throwable cause) Initializes a new instance of the DecodeException class. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse, getValueMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DecodeException
Initializes a new instance of the DecodeException class.- Parameters:
message- The exception message or the response content if a message is not available.response- The HTTP response received from Azure service.
-
DecodeException
Initializes a new instance of the DecodeException class.- Parameters:
message- The exception message.response- The HTTP response received from Azure service.value- The deserialized response value.
-
DecodeException
Initializes a new instance of the DecodeException class.- Parameters:
message- The exception message or the response content if a message is not available.response- The HTTP response received from Azure service.cause- TheThrowablewhich caused the creation of this exception.
-