title: java error: cannot find symbol GPSException
body: <p>Below is my Point class</p>
  
  <pre><code>public Point(ZonedDateTime timeStamp, double longitude, double latitude, double elevation)throws GPSException {
      this.timeStamp = timeStamp;
      if(longitude &lt; -180.0 ||  latitude &lt; 0.0){
          throw new GPSException("TOO LOW");
      }else if(longitude &gt; 180 || latitude &gt; 90){
                  throw new GPSException("TOO HIGH");
      }else{
              double dec1 =  Double.valueOf(newFormat.format(longitude));
              this.longitude = dec1;
              double dec =  Double.valueOf(newFormat.format(latitude));
  
              this.latitude = dec;
              this.longitude = dec1;
              this.elevation = elevation;
      }
  
  }
  </code></pre>
  
  <p>When I run this I get the error:</p>
  
  <blockquote>
    <p>error: cannot find symbol</p>
  </blockquote>
  
  <p>The error is pointing to GPSException
  (see image)
  <a href="https://i.stack.imgur.com/EdXrb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EdXrb.jpg" alt="Error"></a></p>
  
  <p>How do I fix this error?</p>