Examples of ServiceUnavailableException


Examples of javax.naming.ServiceUnavailableException

            {
                throw (NamingException)e;
            }
            else
            {
                final ServiceUnavailableException sue =
                    new ServiceUnavailableException( e.getMessage() );
                sue.setRootCause( e );
                throw sue;
            }
        }
    }
View Full Code Here

Examples of javax.ws.rs.ServiceUnavailableException

        return roleController.list();
    }

    @Override
    public List<RoleTO> list(final int page, final int size) {
        throw new ServiceUnavailableException();
    }
View Full Code Here

Examples of javax.ws.rs.ServiceUnavailableException

    public synchronized void handleTimeout() {
        if (!resumedByApplication) {
            if (timeoutHandler != null) {
                timeoutHandler.handleTimeout(this);
            } else {
                cont.setObject(new ServiceUnavailableException());
            }
        }
    }
View Full Code Here

Examples of javax.ws.rs.ServiceUnavailableException

        return Arrays.asList(getRestTemplate().getForObject(baseUrl + "role/list.json", RoleTO[].class));
    }

    @Override
    public List<RoleTO> list(final int page, final int size) {
        throw new ServiceUnavailableException();
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.services.twitter.errors.ServiceUnavailableException

                    case 500:
                        throw new InternalServerErrorException();
                    case 502:
                        throw new BadGatewayException();
                    case 503:
                        throw new ServiceUnavailableException();
                    default:
                        throw new TwitterAPIException("unexpected response code: " + code);
                }
            }
        }
View Full Code Here

Examples of org.apache.wookie.exceptions.ServiceUnavailableException

       
        Configuration properties = (Configuration) getServletContext().getAttribute("properties"); //$NON-NLS-1$
        // check validation is enabled
        boolean shouldValidate = properties.getBoolean("widget.enable.validator");
        if(!shouldValidate){
            throw new ServiceUnavailableException();
        }
        //
        // Get localized messages so we can return errors
        //
        Messages localizedMessages = LocaleHandler.localizeMessages(request);
View Full Code Here

Examples of org.arch.dns.exception.ServiceUnavailableException

    msg += " [response code " + rcode + "]";
   
    switch (rcode)
    {
      case SERVER_FAILURE:
        throw new ServiceUnavailableException(msg);
      case NAME_ERROR:
        throw new NameNotFoundException(msg);
      case NOT_IMPL:
      case REFUSED:
        throw new OperationNotSupportedException(msg);
View Full Code Here

Examples of org.candlepin.common.exceptions.ServiceUnavailableException

        }
        catch (Exception e) {
            if (log.isDebugEnabled()) {
                log.debug("Error getting principal " + e);
            }
            throw new ServiceUnavailableException(i18n
                .tr("Error contacting user service"));
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.sisu.peaberry.ServiceUnavailableException

      synchronized (this) {
        if (DORMANT == state) {
          try {
            instance = acquireService();
          } catch (final RuntimeException re) {
            throw new ServiceUnavailableException(re);
          } finally {
            state = ACTIVE;
          }
        }
      }
View Full Code Here

Examples of org.jboss.invocation.ServiceUnavailableException

         // Clear the targets to simulate exhausting them all
         FamilyClusterInfo info = ClusteringTargetsRepository.getFamilyClusterInfo(proxyFamilyName);
         for (Object target: info.getTargets())
            info.removeDeadTarget(target);
        
         throw new ServiceUnavailableException("Service unavailable",
                                               new Exception("Test"));
      }

      return getNext().invoke(mi);
   }
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.