Package io.lumify.core.exception

Examples of io.lumify.core.exception.LumifyException


            if (messageId == null) {
                return;
            }
            this.collector.emit(new Values(tweetJson.toString()), messageId);
        } catch (IOException e) {
            throw new LumifyException("Could not read file: " + fileName);
        }
    }
View Full Code Here


            }
            Method m = jGeometryClass.getDeclaredMethod("load", oracleSqlStructClass);
            Object obj = m.invoke(null, st);
            return new JGeometryWrapper(obj);
        } catch (Exception ex) {
            throw new LumifyException("Could not load JGeometry", ex);
        }
    }
View Full Code Here

                if (t.getValue() == type) {
                    return t;
                }
            }
        } catch (Exception ex) {
            throw new LumifyException("Could not getType", ex);
        }
        throw new LumifyException("Unknown type: " + type);
    }
View Full Code Here

    public Point2D getJavaPoint() {
        try {
            Method m = jGeometryClass.getMethod("getJavaPoint");
            return (Point2D) m.invoke(this.jGeometryObj);
        } catch (Exception ex) {
            throw new LumifyException("Could not getJavaPoint", ex);
        }
    }
View Full Code Here

                }
            } else if (obj instanceof Literal) {
                LOGGER.info("set property on %s to %s", subject.toString(), statement.toString());
                importLiteral(vertexBuilder, statement, baseDir, data, visibility);
            } else {
                throw new LumifyException("Unhandled object type: " + obj.getClass().getName());
            }
        }

        Vertex v = vertexBuilder.save(authorizations);
View Full Code Here

    private Object convertStreamingValueJsonToValueObject(File baseDir, String valueString) {
        JSONObject streamingValueJson = new JSONObject(valueString.substring("streamingValue:".length()));
        String fileName = streamingValueJson.getString("fileName");
        if (baseDir == null) {
            throw new LumifyException("Could not import streamingValue. No baseDir specified.");
        }
        File file = new File(baseDir, fileName);
        InputStream in;
        try {
            if (!file.exists()) {
                throw new LumifyException("File " + file.getAbsolutePath() + " does not exist.");
            }
            in = new FileInputStream(file);
        } catch (FileNotFoundException ex) {
            throw new LumifyException("File " + file.getAbsolutePath() + " does not exist.");
        }
        StreamingPropertyValue spv = new StreamingPropertyValue(in, byte[].class);
        spv.searchIndex(false);
        spv.store(true);
        return spv;
View Full Code Here

    }

    public void prepareIris(TermMentionFilterPrepareData termMentionFilterPrepareData) {
        this.artifactHasEntityIri = getConfiguration().get(Configuration.ONTOLOGY_IRI_ARTIFACT_HAS_ENTITY);
        if (this.artifactHasEntityIri == null) {
            throw new LumifyException("Could not find configuration for " + Configuration.ONTOLOGY_IRI_ARTIFACT_HAS_ENTITY);
        }

        stateIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_STATE_IRI);
        if (stateIri == null || stateIri.length() == 0) {
            throw new LumifyException("Could not find config: " + CONFIG_STATE_IRI);
        }

        countryIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_COUNTRY_IRI);
        if (countryIri == null || countryIri.length() == 0) {
            throw new LumifyException("Could not find config: " + CONFIG_COUNTRY_IRI);
        }

        cityIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_CITY_IRI);
        if (cityIri == null || cityIri.length() == 0) {
            throw new LumifyException("Could not find config: " + CONFIG_CITY_IRI);
        }

        geoLocationIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_GEO_LOCATION_IRI);
        if (geoLocationIri == null || geoLocationIri.length() == 0) {
            throw new LumifyException("Could not find config: " + CONFIG_GEO_LOCATION_IRI);
        }
    }
View Full Code Here

                        }
                    });
                }
            });
        } catch (ExecutionException e) {
            throw new LumifyException("Could not get relationship labels");
        }
    }
View Full Code Here

                        }
                    });
                }
            });
        } catch (ExecutionException e) {
            throw new LumifyException("Could not get properties", e);
        }
    }
View Full Code Here

                public List<Concept> callWithTime() throws Exception {
                    return toList(getConcepts());
                }
            });
        } catch (ExecutionException e) {
            throw new LumifyException("could not get concepts with properties", e);
        }
    }
View Full Code Here

TOP

Related Classes of io.lumify.core.exception.LumifyException

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.