ErrorResponse Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.models.ErrorResponse

Implements

public final class ErrorResponse
implements JsonSerializable<ErrorResponse>

Describes the error that occurred.

Constructor Summary

Constructor Description
ErrorResponse()

Creates an instance of ErrorResponse class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: Error code associated with the error that occurred.

static ErrorResponse fromJson(JsonReader jsonReader)

Reads an instance of ErrorResponse from the JsonReader.

String message()

Get the message property: Describes the error in detail.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ErrorResponse

public ErrorResponse()

Creates an instance of ErrorResponse class.

Method Details

code

public String code()

Get the code property: Error code associated with the error that occurred.

Returns:

the code value.

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.

message

public String message()

Get the message property: Describes the error in detail.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to