Package org.brixcms.jcr.exception

Examples of org.brixcms.jcr.exception.JcrException


        EventUtil.raiseSaveEvent(node);
    }

    public void handleException(Exception e) {
        if (e instanceof RepositoryException) {
            throw new JcrException((RepositoryException) e);
        } else {
            throw new BrixException(e);
        }
    }
View Full Code Here


        try {
            JcrSession session = JcrSession.Wrapper.wrap(node.getSession(), null);
            JcrNode wrapped = JcrNode.Wrapper.wrap(node, session);
            raiseSaveEvent(wrapped);
        } catch (RepositoryException e) {
            throw new JcrException(e);
        }
    }
View Full Code Here

        if (behavior != null) {
            behavior.handleException(e);
        } else {
            if (e instanceof RepositoryException) {
                throw new JcrException((RepositoryException) e);
            } else {
                throw new RuntimeException(e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.exception.JcrException

Copyright © 2018 www.massapicom. 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.