class BTCMarketsBaseResponse {

  private final Boolean success;
  private final String errorMessage;
  private final Integer errorCode;

  protected BTCMarketsBaseResponse(
      @JsonProperty("success") Boolean success,
      @JsonProperty("errorMessage") String errorMessage,
      @JsonProperty("errorCode") Integer errorCode) {
    if (!Objects.equals(success, Boolean.TRUE)) {
      throw new ExceptionalReturnContentException(errorMessage);
    }
    this.success = success;
    this.errorMessage = errorMessage;
    this.errorCode = errorCode;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  public Boolean getSuccess() {
    return success;
  }

  public Integer getErrorCode() {
    return errorCode;
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}
}

    return String.format(
        "%s{success=%s, errorMessage='%s', errorCode=%d}",
        getClass().getSimpleName(), success, errorMessage, errorCode);
  
<no_super_class>