Class HttpJsonStatusCode

  • All Implemented Interfaces:
    com.google.api.gax.rpc.StatusCode

    @BetaApi
    @InternalExtensionOnly
    public class HttpJsonStatusCode
    extends Object
    implements com.google.api.gax.rpc.StatusCode
    A failure code specific to an HTTP call.
    • Method Detail

      • of

        public static HttpJsonStatusCode of​(int httpStatus)
        Creates a new instance with the given status code.
      • of

        public static HttpJsonStatusCode of​(com.google.api.gax.rpc.StatusCode.Code statusCode)
      • getCode

        public com.google.api.gax.rpc.StatusCode.Code getCode()
        Specified by:
        getCode in interface com.google.api.gax.rpc.StatusCode
      • getTransportCode

        public Integer getTransportCode()
        Returns the status code from the http call.
        Specified by:
        getTransportCode in interface com.google.api.gax.rpc.StatusCode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object