ErrorResponse Class

  • java.lang.Object
    • com.azure.maps.render.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.

ErrorDetail getError()

Get the error property: The error object.

ErrorResponse setError(ErrorDetail error)

Set the error property: The error object.

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.

getError

public ErrorDetail getError()

Get the error property: The error object.

Returns:

the error value.

setError

public ErrorResponse setError(ErrorDetail error)

Set the error property: The error object.

Parameters:

error - the error value to set.

Returns:

the ErrorResponse object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to