All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.okcoin.OkCoinException Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.knowm.xchange.okcoin;

import org.knowm.xchange.exceptions.ExchangeException;

public class OkCoinException extends ExchangeException {

  private static final long serialVersionUID = 20140614L;

  private final int errorCode;

  /**
   * Constructor.
   *
   * @param errorCode the error code.
   * @param message the exception message.
   */
  public OkCoinException(int errorCode, String message) {

    super(message);
    this.errorCode = errorCode;
  }

  /** @return the error code. */
  public int getErrorCode() {

    return errorCode;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy