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 classStatus.Code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static StatusfromProto(com.google.rpc.Status proto)Wraps the given protobuf StatusStatus.CodegetCode()Gets the typesafe code.StringgetMessage()Gets error message.inthashCode()com.google.rpc.StatustoProto()Gets the underlying protobuf.StringtoString()
-
-
-
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.
-
-