Partager via


DecodeException Class

public class DecodeException
extends HttpResponseException

The DecodeException represents an exception thrown when the HTTP response could not be decoded during the deserialization process.

This exception is thrown when the HTTP response received from Azure service is not in the expected format or structure, causing the deserialization process to fail.

Constructor Summary

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.

Methods inherited from HttpResponseException

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

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 - The Throwable which caused the creation of this exception.

Applies to