Class 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
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object