title: Restlet, can't handle ConnectionException
body: <p>I have the following code:</p>
  
  <pre><code>private Job[] synchro(URI u)  {
          try{
              Client client = new Client(new Context(),Protocol.HTTP);
              Reference samplesUri = new Reference(u+"/synchrojobs/");
  
              ClientResource cr = new ClientResource(client.getContext(),Method.POST,samplesUri);
              cr.setChallengeResponse(ChallengeScheme.HTTP_BASIC, "xxx", "uxxx");
              Job[] back = persistence.all().toArray(new Job[persistence.all().size()]);
              for(Job trace : back){
                  logger.debug(String.format("Sending synchro for %s status:%s time:%s",trace.getId().toString(),trace.getStatus(),trace.getLastStatusChangeDate().toString()));
              }
              Representation res = cr.post(new JacksonRepresentation&lt;Job[]&gt;(back));
              Job[] result = this.mapper.readValue(res.getStream(),Job[].class);
              cr.release();
              res.release();
  
              logger.info(String.format("Found %s jobs from %s",result.length,u));
  
              return result;
          }catch(Exception e){
              logger.error("Error synchronizing jobs:"+e.getMessage());
              return new Job[0];
          }
      }
  </code></pre>
  
  <p>if the other party is not connected, an exception is raised, but is not caught in my block, it pop up externally, why could this happen?</p>