Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 050A2200CC4 for ; Thu, 13 Jul 2017 17:14:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0412916BC45; Thu, 13 Jul 2017 15:14:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B037116BC03 for ; Thu, 13 Jul 2017 17:14:48 +0200 (CEST) Received: (qmail 65669 invoked by uid 500); 13 Jul 2017 15:14:47 -0000 Mailing-List: contact commits-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list commits@polygene.apache.org Received: (qmail 65589 invoked by uid 99); 13 Jul 2017 15:14:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 15:14:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0A386F5529; Thu, 13 Jul 2017 15:14:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: paulmerlin@apache.org To: commits@polygene.apache.org Date: Thu, 13 Jul 2017 15:14:49 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/10] polygene-java git commit: Move IndexingException to API archived-at: Thu, 13 Jul 2017 15:14:50 -0000 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/460bd5c0 Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/460bd5c0 Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/460bd5c0 Branch: refs/heads/develop Commit: 460bd5c0aaa0abca29bb79c22c4037605d704e26 Parents: ce23106 Author: niclas Authored: Sun Jul 9 12:40:03 2017 +0800 Committer: Paul Merlin Committed: Thu Jul 13 17:13:30 2017 +0200 ---------------------------------------------------------------------- .../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/460bd5c0/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/460bd5c0/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 QueryBuilderFactory.newQueryBuilder() 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/460bd5c0/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 QueryBuilderFactory.newQueryBuilder() 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/460bd5c0/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/460bd5c0/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