Package com.esri.gpt.catalog.harvest.clients.exceptions

Examples of com.esri.gpt.catalog.harvest.clients.exceptions.HRInvalidUrlException


    cr.execute();

    return new ByteArrayInputStream(sh.getContent());

  } catch (MalformedURLException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (UnknownHostException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (SocketTimeoutException ex) {
    throw new HRTimeoutException(
      "Timeout of " + getTimeout() + " milliseconds exceeded.", ex);
  } catch (IOException ex) {
    throw new HRInvalidResponseException("Error reading response.", ex);
View Full Code Here


    cr.execute();

    return new ByteArrayInputStream(sh.getContent());

  } catch (MalformedURLException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (SocketTimeoutException ex) {
    throw new HRTimeoutException(
      "Timeout of " + getTimeout() + " milliseconds exceeded.", ex);
  } catch (ConnectException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (IOException ex) {
    throw new HRInvalidResponseException("Error reading response.", ex);
  }
}
View Full Code Here

private void handleImsServiceException(ImsServiceException ex)
  throws HRConnectionException {

  if (ex.getCause() != null) {
    if (ex.getCause() instanceof MalformedURLException) {
      throw new HRInvalidUrlException(
        "Invalid URL: " + getFullUrl(), ex.getCause());
    }
    if (ex.getCause() instanceof UnknownHostException) {
      throw new HRInvalidUrlException(
        "Invalid URL: " + getFullUrl(), ex.getCause());
    }
    if (ex.getCause() instanceof SocketTimeoutException) {
      throw new HRTimeoutException(
        "Timeout of " + getTimeout() + " milliseconds exceeded.", ex);
View Full Code Here

    conn.connect();

    return conn.getInputStream();

  } catch (MalformedURLException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (UnknownHostException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (SocketTimeoutException ex) {
    throw new HRTimeoutException(
      "Timeout of " + getTimeout() + " milliseconds exceeded.", ex);
  } catch (IOException ex) {
    throw new HRInvalidResponseException("Error reading response.", ex);
View Full Code Here

    output.flush();
   
    return conn.getInputStream();

  } catch (MalformedURLException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (SocketTimeoutException ex) {
    throw new HRTimeoutException(
      "Timeout of " + getTimeout() + " milliseconds exceeded.", ex);
  } catch (ConnectException ex) {
    throw new HRInvalidUrlException("Invalid URL: " + getHostUrl(), ex);
  } catch (IOException ex) {
    throw new HRInvalidResponseException("Error reading response.", ex);
  }
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.harvest.clients.exceptions.HRInvalidUrlException

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.