Examples of LDClientException


Examples of at.newmedialab.ldclient.exception.LDClientException

                return parseResponse(resource,response,endpoint);
            }
        } catch(TupleQueryResultHandlerException ex) {
            log.error("repository error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("repository error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(QueryResultParseException ex) {
            log.error("SPARQL query result parsing error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("SPARQL query result parsing error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(RDFParseException ex) {
            log.error("RDF parsing error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("RDF parsing error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(RepositoryException ex) {
            log.error("repository error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("repository error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(IOException ex) {
            log.error("I/O error while trying to retrieve resource {}: {}",resource.stringValue(),ex.getMessage());

            throw new LDClientException("I/O error while trying to retrieve resource "+resource.stringValue(),ex);
        } finally {
        }


        return null;
View Full Code Here

Examples of at.newmedialab.ldclient.exception.LDClientException

        HttpResponse result = httpClient.execute(get);
        if(result.getEntity() == null || RDFParserRegistry.getInstance().getFileFormatForMIMEType(result.getEntity().getContentType().getValue().split(";")[0]) == null) {
            get.abort();
            if(result.getEntity() != null) {
                throw new LDClientException("invalid content returned by Linked Data resource "+resource.stringValue()+": "+result.getEntity().getContentType().getValue());
            } else {
                throw new LDClientException("no content returned by Linked Data resource "+resource.stringValue());
            }
        }

        return result;
    }
View Full Code Here

Examples of at.newmedialab.ldclient.exception.LDClientException

            } else {
                throw new IOException("the HTTP request did not contain any data");
            }
        } else {
            log.error("the HTTP request failed (status: {})",response.getStatusLine());
            throw new LDClientException("the HTTP request failed (status: "+response.getStatusLine()+")");
        }

    }
View Full Code Here

Examples of at.newmedialab.ldclient.exception.LDClientException

                return parseResponse(resource,response,endpoint);
            }
        } catch(TupleQueryResultHandlerException ex) {
            log.error("repository error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("repository error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(QueryResultParseException ex) {
            log.error("SPARQL query result parsing error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("SPARQL query result parsing error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(RDFParseException ex) {
            log.error("RDF parsing error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("RDF parsing error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(RepositoryException ex) {
            log.error("repository error while trying to retrieve resource "+resource.stringValue(),ex);

            throw new LDClientException("repository error while trying to retrieve resource "+resource.stringValue(),ex);
        } catch(IOException ex) {
            log.error("I/O error while trying to retrieve resource {}: {}",resource.stringValue(),ex.getMessage());

            throw new LDClientException("I/O error while trying to retrieve resource "+resource.stringValue(),ex);
        } finally {
        }


        return null;
View Full Code Here

Examples of at.newmedialab.ldclient.exception.LDClientException

        HttpResponse result = httpClient.execute(get);
        if(result.getEntity() == null || RDFParserRegistry.getInstance().getFileFormatForMIMEType(result.getEntity().getContentType().getValue().split(";")[0]) == null) {
            get.abort();
            if(result.getEntity() != null) {
                throw new LDClientException("invalid content returned by Linked Data resource "+resource.stringValue()+": "+result.getEntity().getContentType().getValue());
            } else {
                throw new LDClientException("no content returned by Linked Data resource "+resource.stringValue());
            }
        }

        return result;
    }
View Full Code Here

Examples of at.newmedialab.ldclient.exception.LDClientException

            } else {
                throw new IOException("the HTTP request did not contain any data");
            }
        } else {
            log.error("the HTTP request failed (status: {})",response.getStatusLine());
            throw new LDClientException("the HTTP request failed (status: "+response.getStatusLine()+")");
        }

    }
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.