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 09:55:09 UTC

[sling-org-apache-sling-models-api] 29/34: SLING-4767 clarify javadoc around PostConstructException

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

rombert pushed a commit to annotated tag org.apache.sling.models.api-1.2.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-api.git

commit ee84eccc6d68fac25d8db82e1edcbaea5752153b
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Jun 1 07:24:20 2015 +0000

    SLING-4767 clarify javadoc around PostConstructException
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/api@1682827 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/models/factory/PostConstructException.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/apache/sling/models/factory/PostConstructException.java b/src/main/java/org/apache/sling/models/factory/PostConstructException.java
index a1d3122..dea789e 100644
--- a/src/main/java/org/apache/sling/models/factory/PostConstructException.java
+++ b/src/main/java/org/apache/sling/models/factory/PostConstructException.java
@@ -20,6 +20,7 @@ package org.apache.sling.models.factory;
 
 /**
  * Exception which is triggered, whenever the post-construct method has thrown an exception.
+ * The cause (accessible via {@link #getCause()}) is always the original exception being thrown from the post-construct method.
  */
 public class PostConstructException extends ModelClassException {
 
@@ -28,6 +29,11 @@ public class PostConstructException extends ModelClassException {
      */
     private static final long serialVersionUID = -2527043835215727726L;
 
+    /**
+     * 
+     * @param message some message
+     * @param cause the original exception being thrown in the post-construct
+     */
     public PostConstructException(String message, Throwable cause) {
         super(message, cause);
     }

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