class KrakenFuturesResult {

  private final String result;
  private final String error;

  /**
   * Constructor
   *
   * @param result
   * @param error
   */
  @JsonCreator
  public KrakenFuturesResult(String result, String error) {
    this.result = result;
    this.error = error;
  }

  public boolean isSuccess() {
    return result.equalsIgnoreCase("success");
  }

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


    if (isSuccess()) return result;
    else return result + " : " + error;
  
<no_super_class>