Package geodress.exceptions

Examples of geodress.exceptions.ParameterOutOfRangeException


      throws ParameterOutOfRangeException {
    try {
      setLatitude(Double.valueOf(latitude));
      setLongitude(Double.valueOf(longitude));
    } catch (NumberFormatException nfe) {
      throw new ParameterOutOfRangeException(
          "the given values where not a number");
    }
  }
View Full Code Here


  public void setLatitude(double latitude)
      throws ParameterOutOfRangeException {
    if (-90 <= latitude && latitude <= 90) {
      this.latitude = latitude;
    } else {
      throw new ParameterOutOfRangeException(
          "longitude may be min. -90 and max. 90 degrees");
    }
  }
View Full Code Here

  public void setLongitude(double longitude)
      throws ParameterOutOfRangeException {
    if (-180 <= longitude && longitude <= 180) {
      this.longitude = longitude;
    } else {
      throw new ParameterOutOfRangeException(
          "longitude may be min. -180 and max. 180 degrees");
    }
  }
View Full Code Here

TOP

Related Classes of geodress.exceptions.ParameterOutOfRangeException

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.