title: Apache Error is incompatible with throws class
body: <p>I've got a quick question. In my grails project I am making some web service calls. One of the calls (for a search function) tends to timeout if not enough characters are given to search for. I can't increase the number of required characters so I instead am trying to catch the exception and display an error page asking the user to add more detailed parameters.</p>
  
  <p>The method looks like this:</p>
  
  <pre><code>import org.apache.http.client.HttpResponseException
  
  class RestSearchService implements SearchService {
      List&lt;Person&gt; getPersonSearch( String fName, String lName) throws HttpResponseException {
          ...
          //  Make the call
          ...
      }
  }
  </code></pre>
  
  <p>I then catch the thrown exception in the controller to redirect to the error page. I've tested it and this code appears to work fine. The problem is that the method above is underlined (I'm using SpringSource Tool Suite for an IDE) and says </p>
  
  <pre><code>Exception HttpResponseException is not compatible with 
  throws clause in SearchService.getPersonSearch(String, String)
  </code></pre>
  
  <p>Does anyone know what might be causing this? Also, might it mean that there is an actual problem or circumstance where this will cause the app to break? Like I said, from what I can tell the throw/redirect is working like a champ, but that error makes me nervous about moving the app to production.</p>
  
  <p>Thanks in advance,</p>
  
  <p>-Mike</p>