ErrorResponse Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.ErrorResponse

Implements

public final class ErrorResponse
implements JsonSerializable<ErrorResponse>

Error Response Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

Constructor Summary

Constructor Description
ErrorResponse()

Creates an instance of ErrorResponse class.

Method Summary

Modifier and Type Method and Description
static ErrorResponse fromJson(JsonReader jsonReader)

Reads an instance of ErrorResponse from the JsonReader.

List<ErrorAdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: The error additional info.

String getCode()

Get the code property: The error code.

List<ErrorResponse> getDetails()

Get the details property: The error details.

String getMessage()

Get the message property: The error message.

String getTarget()

Get the target property: The error target.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ErrorResponse

public ErrorResponse()

Creates an instance of ErrorResponse class.

Method Details

fromJson

public static ErrorResponse fromJson(JsonReader jsonReader)

Reads an instance of ErrorResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ErrorResponse if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ErrorResponse.

getAdditionalInfo

public List<ErrorAdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: The error additional info.

Returns:

the additionalInfo value.

getCode

public String getCode()

Get the code property: The error code.

Returns:

the code value.

getDetails

public List<ErrorResponse> getDetails()

Get the details property: The error details.

Returns:

the details value.

getMessage

public String getMessage()

Get the message property: The error message.

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The error target.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to