You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:11:19 UTC

[sling-org-apache-sling-scripting-sightly-compiler-java] 28/31: SLING-6639 - Avoid split packages in the HTL Engine and HTL Java Compiler bundles

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.compiler.java-1.0.10
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-compiler-java.git

commit 2a401ecc86034178e7343bf64f6811532eb7bba0
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Wed Mar 15 16:57:00 2017 +0000

    SLING-6639 - Avoid split packages in the HTL Engine and HTL Java Compiler bundles
    
    * moved SightlyException into the java-compiler, but made it extend directly RuntimeException
    * moved ResourceResolution into the org.apache.sling.scripting.sightly.engine package
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/java-compiler@1787079 13f79535-47bb-0310-9956-ffa450edef68
---
 .../{package-info.java => SightlyException.java}   | 23 +++++++++++++++++++---
 .../sling/scripting/sightly/package-info.java      |  2 +-
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/sling/scripting/sightly/package-info.java b/src/main/java/org/apache/sling/scripting/sightly/SightlyException.java
similarity index 71%
copy from src/main/java/org/apache/sling/scripting/sightly/package-info.java
copy to src/main/java/org/apache/sling/scripting/sightly/SightlyException.java
index 96dca47..16111ee 100644
--- a/src/main/java/org/apache/sling/scripting/sightly/package-info.java
+++ b/src/main/java/org/apache/sling/scripting/sightly/SightlyException.java
@@ -14,8 +14,25 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  ******************************************************************************/
-
-@Version("1.0.1")
 package org.apache.sling.scripting.sightly;
 
-import org.osgi.annotation.versioning.Version;
+/**
+ * Exceptions caused by the HTL engine.
+ */
+public class SightlyException extends RuntimeException {
+
+    public SightlyException() {
+    }
+
+    public SightlyException(String message) {
+        super(message);
+    }
+
+    public SightlyException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    public SightlyException(Throwable cause) {
+        super(cause);
+    }
+}
diff --git a/src/main/java/org/apache/sling/scripting/sightly/package-info.java b/src/main/java/org/apache/sling/scripting/sightly/package-info.java
index 96dca47..3a9028f 100644
--- a/src/main/java/org/apache/sling/scripting/sightly/package-info.java
+++ b/src/main/java/org/apache/sling/scripting/sightly/package-info.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  ******************************************************************************/
 
-@Version("1.0.1")
+@Version("1.1.0")
 package org.apache.sling.scripting.sightly;
 
 import org.osgi.annotation.versioning.Version;

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.