Created
November 19, 2010 13:11
-
-
Save plagelao/706495 to your computer and use it in GitHub Desktop.
Interfaz de usuario que se preocupa de la validación
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cajero { | |
public void muestraLaPantallaPrincipal() { | |
try { | |
Banco banco = new Banco(new OperacionesBancariasBancoManolito()); | |
Credenciales credenciales = obtenCredenciales(); | |
Cuenta cuenta = banco.obtenerCuenta(credenciales); | |
muestraInformacionDeLacuenta(cuenta); | |
} catch (AccesoInvalidadoPorMultiplesReintentosFallidos e) { | |
muestraUnErrorPorCuentaAnulada(); | |
} catch (CredencialesIncorrectas e) { | |
pideUnasNuevasCredenciales(); | |
} catch (BancoInaccesible e) { | |
pasaAModoFueraDeServico(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment