Package modelo.excepciones

Examples of modelo.excepciones.LadronNoPlaneoEscapeException


    return this.ciudadAnterior;
  }

  public boolean escapar() throws LadronNoPlaneoEscapeException {
    if (!this.itinerario.tieneDestinos())
      throw new LadronNoPlaneoEscapeException("El ladron no planeo su escape.");
    if (hizoUltimoEscape())
      return false;
    this.ciudadAnterior = this.ciudadActual;
    this.ciudadActual = this.itinerario.ciudadSiguiente(ciudadActual);
    return true;
View Full Code Here


    int horasDeViaje = velocidad.calcularTiempo(distancia);

    try {
      this.locacion.viajar(destino);
    } catch (LadronNoPlaneoEscapeException e) {
      throw new LadronNoPlaneoEscapeException(e.getMessage());
    }

    this.actualizar(horasDeViaje);
  }
View Full Code Here

TOP

Related Classes of modelo.excepciones.LadronNoPlaneoEscapeException

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.