Class ResponseError

java.lang.Object
com.qtsurfer.api.client.model.ResponseError

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.24.0") public class ResponseError extends Object
General response error
  • Field Details

  • Constructor Details

    • ResponseError

      public ResponseError()
  • Method Details

    • code

      public ResponseError code(@Nonnull Integer code)
    • getCode

      @Nonnull public Integer getCode()
      Status code
      Returns:
      code
    • setCode

      public void setCode(@Nonnull Integer code)
    • message

      public ResponseError message(@Nonnull String message)
    • getMessage

      @Nonnull public String getMessage()
      Error description
      Returns:
      message
    • setMessage

      public void setMessage(@Nonnull String message)
    • reason

      public ResponseError reason(@Nullable String reason)
    • getReason

      @Nullable public String getReason()
      A stable token naming the cause, for a client to branch on without reading `message`. Present only on an error that has one, and each operation that can return one lists the values it uses. A client treats a value it does not know like an absent `reason`.
      Returns:
      reason
    • setReason

      public void setReason(@Nullable String reason)
    • next

      public ResponseError next(@Nullable ErrorNextCall next)
    • getNext

      @Nullable public ErrorNextCall getNext()
      Get next
      Returns:
      next
    • setNext

      public void setNext(@Nullable ErrorNextCall next)
    • equals

      public boolean equals(Object o)
      Return true if this ResponseError object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string