Package javax.jcr

Examples of javax.jcr.RepositoryException.initCause()


        Throwable cause = getCause();
        if (cause instanceof RepositoryException) {
            RepositoryException e;
            try {
                e = (RepositoryException) cause.getClass().getConstructor().newInstance();
                e.initCause(this);
            }
            catch (Exception ex) {
                e = (RepositoryException) cause;
            }
View Full Code Here


        if (cause instanceof RepositoryException) {
            RepositoryException e;
            try {
                // Try to preserve all parts of the stack trace
                e = (RepositoryException) cause.getClass().getConstructor().newInstance();
                e.initCause(this);
            }
            catch (Exception ex) {
                // Fall back to the initial cause on failure
                e = (RepositoryException) cause;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.