ErrorContract Class

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

Implements

public final class ErrorContract
implements JsonSerializable<ErrorContract>

Error details. Contains details when the response code indicates an error.

Constructor Summary

Constructor Description
ErrorContract()

Creates an instance of ErrorContract class.

Method Summary

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

Reads an instance of ErrorContract from the JsonReader.

ErrorResponse getError()

Get the error property: The error details.

ErrorContract setError(ErrorResponse error)

Set the error property: The error details.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ErrorContract

public ErrorContract()

Creates an instance of ErrorContract class.

Method Details

fromJson

public static ErrorContract fromJson(JsonReader jsonReader)

Reads an instance of ErrorContract from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ErrorContract 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 ErrorContract.

getError

public ErrorResponse getError()

Get the error property: The error details.

Returns:

the error value.

setError

public ErrorContract setError(ErrorResponse error)

Set the error property: The error details.

Parameters:

error - the error value to set.

Returns:

the ErrorContract object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to