示例#1
0
  public void authorizeVoidPreSales(int sequenceNumber, long amount, long taxOthers, int timeout)
      throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.authorizeVoidPreSales(sequenceNumber, amount, taxOthers, timeout);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }