Class Status (2.35.1)

public final class Status implements Serializable

The Status type defines a logical error model. Each Status message contains an error code and a error message.

This primarily wraps the protobuf com.google.rpc.Status.

Inheritance

Object > Status

Implements

Serializable

Static Methods

fromProto(Status proto)

public static Status fromProto(Status proto)

Wraps the given protobuf Status

Parameter
NameDescription
protocom.google.rpc.Status
Returns
TypeDescription
Status

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getCode()

public Status.Code getCode()

Gets the typesafe code.

Returns
TypeDescription
Status.Code

getMessage()

public String getMessage()

Gets error message.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toProto()

public Status toProto()

Gets the underlying protobuf.

Returns
TypeDescription
com.google.rpc.Status

toString()

public String toString()
Returns
TypeDescription
String
Overrides