Package fr.openwide.core.jpa.exception

Examples of fr.openwide.core.jpa.exception.ServiceException


    Document doc;
    try {
      doc = Jsoup.connect(url).header(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE).get();
    } catch (IOException e) {
      throw new ServiceException("IOException: " + e.getMessage(), e);
    }
    return parseMavenMetadata(doc);
  }
View Full Code Here


    } catch (SolrServerException e) {
      StringBuilder sb = new StringBuilder()
        .append(e.getMessage())
        .append(" for generated query: ")
        .append(query.getQuery());
      throw new ServiceException(sb.toString(), e);
    }
  }
View Full Code Here

      BooleanQuery booleanQuery = new BooleanQuery();
      booleanQuery.add(parser.parse(searchTerm), BooleanClause.Occur.MUST);
     
      booleanJunction.must(booleanQuery);
    } catch (ParseException e) {
      throw new ServiceException(String.format("Error parsing request: %1$s", searchTerm), e);
    }
   
    return fullTextEntityManager.createFullTextQuery(booleanJunction.createQuery(), Artifact.class);
  }
View Full Code Here

TOP

Related Classes of fr.openwide.core.jpa.exception.ServiceException

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.