Esempio n. 1
0
 public Jugador encontrarJugador(String nombre) throws LogicaExcepcion {
   try {
     return dal.encontrarJugador(nombre);
   } catch (DAOExcepcion e) {
     throw new LogicaExcepcion(e);
   }
 }
Esempio n. 2
0
  public void crearJugador(String nombre) throws LogicaExcepcion {

    try {
      if (dal.encontrarJugador(nombre) == null) dal.crearJugador(nombre);
      else throw new LogicaExcepcion("Jugador EXISTE");
    } catch (DAOExcepcion e) {
      throw new LogicaExcepcion(e);
    }
  }