Package com.google.cloud.bigtable.common
Class Status
- java.lang.Object
-
- com.google.cloud.bigtable.common.Status
-
- All Implemented Interfaces:
Serializable
public final class Status extends Object 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
Status
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Status.Code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Status
fromProto(com.google.rpc.Status proto)
Wraps the given protobuf StatusStatus.Code
getCode()
Gets the typesafe code.String
getMessage()
Gets error message.int
hashCode()
com.google.rpc.Status
toProto()
Gets the underlying protobuf.String
toString()
-
-
-
Method Detail
-
fromProto
public static Status fromProto(com.google.rpc.Status proto)
Wraps the given protobuf Status
-
getCode
public Status.Code getCode()
Gets the typesafe code.
-
getMessage
public String getMessage()
Gets error message.
-
toProto
public com.google.rpc.Status toProto()
Gets the underlying protobuf.
-
-