You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2017/07/10 06:53:46 UTC
[44/50] polygene-java git commit: Move IndexingException to API
Move IndexingException to API
Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/5462924e
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/5462924e
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/5462924e
Branch: refs/heads/es-jooq
Commit: 5462924e3a65192dbe31a96f04f08f884e2bf721
Parents: c7d66e1
Author: niclas <ni...@hedhman.org>
Authored: Sun Jul 9 12:40:03 2017 +0800
Committer: niclas <ni...@hedhman.org>
Committed: Sun Jul 9 12:40:03 2017 +0800
----------------------------------------------------------------------
.../api/indexing/IndexingException.java | 17 ++++++++++
.../MissingIndexingSystemException.java | 34 +++++++++++++++++++
.../query/MissingIndexingSystemException.java | 35 --------------------
.../polygene/spi/query/IndexingException.java | 17 ----------
.../support/skeletons/SqlIndexingException.java | 2 +-
5 files changed, 52 insertions(+), 53 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/5462924e/core/api/src/main/java/org/apache/polygene/api/indexing/IndexingException.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/indexing/IndexingException.java b/core/api/src/main/java/org/apache/polygene/api/indexing/IndexingException.java
new file mode 100644
index 0000000..59bacdb
--- /dev/null
+++ b/core/api/src/main/java/org/apache/polygene/api/indexing/IndexingException.java
@@ -0,0 +1,17 @@
+package org.apache.polygene.api.indexing;
+
+/**
+ * This is the exception for Indexing problems. Subtypes should be created for specific problems.
+ *
+ */
+public abstract class IndexingException extends RuntimeException
+{
+ public IndexingException( String message )
+ {
+ super( message );
+ }
+ public IndexingException( String message, Throwable cause )
+ {
+ super( message, cause );
+ }
+}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/5462924e/core/api/src/main/java/org/apache/polygene/api/indexing/MissingIndexingSystemException.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/indexing/MissingIndexingSystemException.java b/core/api/src/main/java/org/apache/polygene/api/indexing/MissingIndexingSystemException.java
new file mode 100644
index 0000000..cf0fd00
--- /dev/null
+++ b/core/api/src/main/java/org/apache/polygene/api/indexing/MissingIndexingSystemException.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+package org.apache.polygene.api.indexing;
+
+import org.apache.polygene.api.query.QueryException;
+
+/**
+ * This Exception is thrown in <code>QueryBuilderFactory.newQueryBuilder()</code> method if
+ * no indexing subsystem has been declared in the assembly.
+ */
+public final class MissingIndexingSystemException extends IndexingException
+{
+ public MissingIndexingSystemException()
+ {
+ super( "No EntityFinder has been declared in the assembly of the application." );
+ }
+}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/5462924e/core/api/src/main/java/org/apache/polygene/api/query/MissingIndexingSystemException.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/polygene/api/query/MissingIndexingSystemException.java b/core/api/src/main/java/org/apache/polygene/api/query/MissingIndexingSystemException.java
deleted file mode 100644
index e15cbee..0000000
--- a/core/api/src/main/java/org/apache/polygene/api/query/MissingIndexingSystemException.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- *
- */
-package org.apache.polygene.api.query;
-
-/**
- * This Exception is thrown in <code>QueryBuilderFactory.newQueryBuilder()</code> method if
- * no indexing subsystem has been declared in the assembly.
- */
-public final class MissingIndexingSystemException
- extends QueryException
-{
- private static final long serialVersionUID = 5147421865890379209L;
-
- public MissingIndexingSystemException()
- {
- super( "No EntityFinder has been declared in the assembly of the application." );
- }
-}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/5462924e/core/spi/src/main/java/org/apache/polygene/spi/query/IndexingException.java
----------------------------------------------------------------------
diff --git a/core/spi/src/main/java/org/apache/polygene/spi/query/IndexingException.java b/core/spi/src/main/java/org/apache/polygene/spi/query/IndexingException.java
deleted file mode 100644
index 6fc8124..0000000
--- a/core/spi/src/main/java/org/apache/polygene/spi/query/IndexingException.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.apache.polygene.spi.query;
-
-/**
- * This is the exception for Indexing problems. Subtypes should be created for specific problems.
- *
- */
-public abstract class IndexingException extends RuntimeException
-{
- public IndexingException( String message )
- {
- super( message );
- }
- public IndexingException( String message, Throwable cause )
- {
- super( message, cause );
- }
-}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/5462924e/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/SqlIndexingException.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/SqlIndexingException.java b/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/SqlIndexingException.java
index cfa3b80..7970590 100644
--- a/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/SqlIndexingException.java
+++ b/extensions/indexing-sql/src/main/java/org/apache/polygene/index/sql/support/skeletons/SqlIndexingException.java
@@ -1,6 +1,6 @@
package org.apache.polygene.index.sql.support.skeletons;
-import org.apache.polygene.spi.query.IndexingException;
+import org.apache.polygene.api.indexing.IndexingException;
@SuppressWarnings( "WeakerAccess" )
public class SqlIndexingException extends IndexingException