Examples of ServiceUnavailableException


Examples of org.osoa.sca.ServiceUnavailableException

    public float withdraw(String account, float amount) throws RemoteException {
        try {
            return accountService.withdraw(account, amount);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

Examples of org.osoa.sca.ServiceUnavailableException

    public AccountLog getAccountLog(int customerID) throws RemoteException {
        try {
            return accountService.getAccountLog(customerID);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

Examples of org.qi4j.api.service.ServiceUnavailableException

                        } );
                    }
                    catch( Exception e )
                    {
                        serviceInstance = null;
                        throw new ServiceUnavailableException( "Could not activate service " + serviceModel.identity(), e );
                    }
                }
            }
        }
View Full Code Here

Examples of org.springframework.osgi.service.ServiceUnavailableException

  public Object getTarget() {
    Object target = lookupService();

    // nothing found
    if (target == null) {
      throw new ServiceUnavailableException(filter);
    }
    return target;
  }
View Full Code Here

Examples of org.tamacat.httpd.exception.ServiceUnavailableException

      if (e instanceof org.tamacat.httpd.exception.HttpException) {
        handleException(request, response,
            (org.tamacat.httpd.exception.HttpException)e);
      } else {
        handleException(request, response,
          new ServiceUnavailableException());
      }
    }
  }
View Full Code Here

Examples of slash.navigation.rest.exception.ServiceUnavailableException

                if (geocodeResponse != null) {
                    String status = geocodeResponse.getStatus();
                    if (status.equals(OK))
                        return extractClosestLocation(geocodeResponse.getResult(), longitude, latitude);
                    if (status.equals(OVER_QUERY_LIMIT))
                        throw new ServiceUnavailableException("maps.googleapis.com", url);
                }
            } catch (JAXBException e) {
                throw new IOException("Cannot unmarshall " + result + ": " + e, e);
            }
        return null;
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.