public class APIException extends Exception {
  protected boolean hasErrNum;
  protected int errNum;

  public APIException() { super(); hasErrNum = false; };
  public APIException(String s) { super(s); hasErrNum = false; };
  public APIException(int en) { super(); hasErrNum = true; errNum = en; };
  public APIException(int en, String s) { super(s); hasErrNum = true; errNum = en; };

  public boolean hasErrNum() {
    return hasErrNum;
  }

  public int getErrNum() {
    return errNum;
  }
}
