Examples of ServiceUnavailableException


Examples of com.amazonaws.services.glacier.model.ServiceUnavailableException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ServiceUnavailableException"))
            return null;

        ServiceUnavailableException e = (ServiceUnavailableException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.logs.model.ServiceUnavailableException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ServiceUnavailableException e = (ServiceUnavailableException)super.unmarshall(json);
        e.setErrorCode("ServiceUnavailableException");

        return e;
    }
View Full Code Here

Examples of com.caucho.bam.ServiceUnavailableException

  protected Serializable query(Serializable query)
  {
    try {
      return (Serializable) _bamClient.query(_deployAddress, query);
    } catch (ServiceUnavailableException e) {
      throw new ServiceUnavailableException("Deploy service is not available, possibly because the resin.xml is missing a <resin:DeployService> tag\n  " + e.getMessage(),
                                            e);
    }
  }
View Full Code Here

Examples of com.dottydingo.hyperion.exception.ServiceUnavailableException

public class HyperionRejectedExecutionHandler implements RejectedExecutionHandler
{
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
    {
        throw new ServiceUnavailableException("No resources available.");
    }
View Full Code Here

Examples of com.google.gdata.client.GoogleService.ServiceUnavailableException

    } else if ("TermsNotAgreed".equals(errorName)) {
      return new TermsNotAgreedException("Terms not agreed");

    } else if ("ServiceUnavailable".equals(errorName)) {
      return new ServiceUnavailableException("Service unavailable");

    } else if ("CaptchaRequired".equals(errorName)) {

      String captchaPath = pairs.get("CaptchaUrl");
      StringBuilder captchaUrl = new StringBuilder();
View Full Code Here

Examples of com.google.gwt.sample.stockwatcher.client.ServiceUnavailableException

    StockProvider provider = (StockProvider) tracker.getService();
    if ( provider != null ) {
      prices = readPrices(provider, symbols);
    }
    else {
      throw new ServiceUnavailableException();
    }
   
    return prices;
  }
View Full Code Here

Examples of com.linkedin.d2.balancer.ServiceUnavailableException

    @Override
    public TransportClient getClient(Request request, RequestContext requestContext) throws ServiceUnavailableException
    {
      if (_serviceUnavailable)
      {
        throw new ServiceUnavailableException("bad", "bad");
      }

      return new TestClient();
    }
View Full Code Here

Examples of javax.naming.ServiceUnavailableException

        try {
            res = request(req);
        } catch (Exception e) {
            if (e instanceof RemoteException && e.getCause() instanceof ConnectException) {
                e = (Exception) e.getCause();
                throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot lookup '" + name + "'.").initCause(e);
            }
            throw (NamingException) new NamingException("Cannot lookup '" + name + "'.").initCause(e);
        }

        switch (res.getResponseCode()) {
View Full Code Here

Examples of javax.naming.ServiceUnavailableException

        try {
            res = request(req);
        } catch (Exception e) {
            if (e instanceof RemoteException && e.getCause() instanceof ConnectException) {
                e = (Exception) e.getCause();
                throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot list '" + name + "'.").initCause(e);
            }
            throw (NamingException) new NamingException("Cannot list '" + name + "'.").initCause(e);
        }

        switch (res.getResponseCode()) {
View Full Code Here

Examples of javax.naming.ServiceUnavailableException

        try {
            res = request(req);
        } catch (Exception e) {
            if (e instanceof RemoteException && e.getCause() instanceof ConnectException) {
                e = (Exception) e.getCause();
                throw (ServiceUnavailableException) new ServiceUnavailableException("Cannot lookup '" + name + "'.").initCause(e);
            }
            throw (NamingException) new NamingException("Cannot lookup '" + name + "'.").initCause(e);
        }

        switch (res.getResponseCode()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.