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
public class DecodeException extends HttpResponseException
Error raised during response deserialization. The HTTP response could not be decoded.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecodeException(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, getValue
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DecodeException
public DecodeException(String message, HttpResponse response)
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
public DecodeException(String message, HttpResponse response, Object value)
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
public DecodeException(String message, HttpResponse response, Throwable cause)
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
- TheThrowable
which caused the creation of this exception.
-
-