Package distrsys.rmi.bank.common

Examples of distrsys.rmi.bank.common.BankException


  }

  public void abheben(long amount) throws BankException
  {
    if((balance + creditLimit - amount) < 0)
      throw new BankException("overdraw account");
    else
      balance -= amount;
  }
View Full Code Here


  }

  public GiroKonto erzeuge_giro_konto(String accountNumber, long creditLimit) throws BankException, RemoteException {
    Konto konto = finde(accountNumber);
    if(konto != null)
      throw new BankException("account already exists!");
   
    GiroKonto giroKonto = new GiroKontoImpl(accountNumber, creditLimit);
    kontos.put(accountNumber, giroKonto);
   
    return giroKonto;
View Full Code Here

  }

  public SparKonto erzeuge_spar_konto(String accountNumber, float zins_satz) throws BankException, RemoteException {
    Konto konto = finde(accountNumber);
    if(konto != null)
      throw new BankException("account already exists!");
   
    SparKonto sparKonto = new SparKontoImpl(accountNumber, zins_satz);
    kontos.put(accountNumber, sparKonto);
   
    return sparKonto;
View Full Code Here

  }

  public void abheben(long amount) throws BankException
  {
    if(amount > balance)
      throw new BankException("account overdrawn!");
    balance -= amount;
  }
View Full Code Here

TOP

Related Classes of distrsys.rmi.bank.common.BankException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.