Examples of LoggedRuntimeException


Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

        }
    }

    private void assertSessionDescriptionNull(SessionDescription sessionDescription) {
        if (sessionDescription == null) {
            throw new LoggedRuntimeException("Given SessionDescription is null", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

        }
    }

    private void assertRuleServerConfigurationNull(RuleServerConfiguration serverConfiguration) {
        if (serverConfiguration == null) {
            throw new LoggedRuntimeException("Given RuleServerConfiguration is null", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

        }
    }

    private void assertRuleClassLoaderNull(ClassLoader classLoader) {
        if (classLoader == null) {
            throw new LoggedRuntimeException("Given ClassLoader to be used by the rule engine " +
                    "is null", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

        return initialized;
    }

    private void assertInitialized() {
        if (!initialized) {
            throw new LoggedRuntimeException("RuleServerManager has not been initialized, " +
                    "it requires to be initialized, with the required " +
                    "configurations before starting", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

        }
    }

    private void assertRuleServerConfigurationNull(RuleServerConfiguration configuration) {
        if (configuration == null) {
            throw new LoggedRuntimeException("Given RuleServerConfiguration is null", log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

                RuleServerConfigurationFactory.create(config, new AXIOMXPathFactory());
        RuleServerManager ruleServerManager = new RuleServerManager();
        ruleServerManager.init(ruleServerConfiguration);

        if (!ruleServerManager.isInitialized()) {
            throw new LoggedRuntimeException("Rule engine cannot be initiated with the given " +
                    "config : " + config, log);
        }

        ruleEngineMangerRegistration = componentContext.getBundleContext().registerService(
                RuleServerManagerService.class.getName(),
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

            XMLStreamReader parser = XMLInputFactory.newInstance().
                    createXMLStreamReader(inputStream);
            StAXOMBuilder builder = new StAXOMBuilder(parser);
            return builder.getDocumentElement();
        } catch (FileNotFoundException e) {
            throw new LoggedRuntimeException(RULE_COMPONENT_CONF + "cannot be found in" +
                    " the path : " + path,
                    e, log);
        } catch (XMLStreamException e) {
            throw new LoggedRuntimeException("Invalid XML for " + RULE_COMPONENT_CONF + " located in" +
                    " the path : " +
                    path, e, log);
        } finally {
            try {
                if (inputStream != null) {
View Full Code Here

Examples of org.wso2.carbon.rule.core.LoggedRuntimeException

     *         Otherwise LoggedRuntimeExceptions are thrown
     */
    public static RuleServerConfiguration create(OMElement configurationXML, XPathFactory xPathFactory) {

        if (configurationXML == null) {
            throw new LoggedRuntimeException("Invalid  configuration. " +
                    "The configuration cannot be null.", log);
        }

        QName tagQName = configurationXML.getQName();
        QNameFactory qNameFactory = QNameFactory.getInstance();
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.LoggedRuntimeException

     * @return <code>BaseXPath</code>
     */
    public BaseXPath getXPath(String expression) {

        if (expression == null || "".equals(expression)) {
            throw new LoggedRuntimeException("Given expression is empty or null.", log);
        }

        BaseXPath baseXPath = xPathMap.get(expression);
        if (baseXPath != null) {
            if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.LoggedRuntimeException

    }


    private void assertResourceDescriptionNull(ResourceDescription resourceDescription) {
        if (resourceDescription == null) {
            throw new LoggedRuntimeException("Given adapter description is null", log);
        }
    }
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.