ConnectionError Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ConnectionError

Implements

public final class ConnectionError
implements JsonSerializable<ConnectionError>

The ConnectionError model.

Method Summary

Modifier and Type Method and Description
ConnectionState connectionState()

Get the connectionState property: The kind of connection error that occurred.

String exception()

Get the exception property: Detailed error message about the failed connection.

static ConnectionError fromJson(JsonReader jsonReader)

Reads an instance of ConnectionError from the JsonReader.

String iPFrom()

Get the iPFrom property: The IP of host that originated the failed connection.

String iPTo()

Get the iPTo property: The IP that the connection attempted to reach.

Integer port()

Get the port property: The TCP port the connection was attempted on.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

connectionState

public ConnectionState connectionState()

Get the connectionState property: The kind of connection error that occurred.

Returns:

the connectionState value.

exception

public String exception()

Get the exception property: Detailed error message about the failed connection.

Returns:

the exception value.

fromJson

public static ConnectionError fromJson(JsonReader jsonReader)

Reads an instance of ConnectionError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

iPFrom

public String iPFrom()

Get the iPFrom property: The IP of host that originated the failed connection.

Returns:

the iPFrom value.

iPTo

public String iPTo()

Get the iPTo property: The IP that the connection attempted to reach.

Returns:

the iPTo value.

port

public Integer port()

Get the port property: The TCP port the connection was attempted on.

Returns:

the port value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to