Examples of LoggedRuntimeException


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

        int tenantId =  SuperTenantCarbonContext.getCurrentContext(axisService).getTenantId();
        if (ruleSource == null) {
            Object value = loadRuleScript(axisService.getClassLoader(), ruleSetDescription,
                    resourceLoader,tenantId);
            if (value == null) {
                throw new LoggedRuntimeException("Cannot load the rule script from" +
                        " the " + ruleSetDescription, log);
            }
            ruleSetDescription.setRuleSource(value);
        }
View Full Code Here

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

     */
    public List execute(List<Object> facts) {
        try {
            return statelessRuleSession.executeRules(facts);
        } catch (InvalidRuleSessionException e) {
            throw new LoggedRuntimeException("Error was occurred when executing StateLess Session",
                    e, log);
        } catch (RemoteException e) {
            throw new LoggedRuntimeException("Error was occurred when executing StateLess Session",
                    e, log);
        }
    }
View Full Code Here

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

     */
    public void release() {
        try {
            statelessRuleSession.release();
        } catch (RemoteException e) {
            throw new LoggedRuntimeException("Error was occurred when executing StateLess Session",
                    e, log);
        } catch (InvalidRuleSessionException e) {
            throw new LoggedRuntimeException("Error was occurred when executing StateLess Session",
                    e, log);
        }
    }
View Full Code Here

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

                                    object.getClass().getAnnotation(TransientObject.class);
                            if (transientObject != null) {
                                statefulRuleSession.removeObject(handle);
                            }
                        } catch (InvalidHandleException e) {
                            throw new LoggedRuntimeException("Error was occurred when accessing " +
                                    "an object from handle : " + handle, e, log);
                        }
                    }
                }

                return results;
            }
        } catch (InvalidRuleSessionException e) {
            throw new LoggedRuntimeException("Error was occurred when executing stateful session",
                    e, log);
        } catch (RemoteException e) {
            throw new LoggedRuntimeException("Error was occurred when executing stateful session",
                    e, log);
        }
    }
View Full Code Here

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

        try {
            synchronized (resourceLock) { //TODO
                statefulRuleSession.release();
            }
        } catch (RemoteException e) {
            throw new LoggedRuntimeException("Error was occurred when executing stateful session",
                    e, log);
        } catch (InvalidRuleSessionException e) {
            throw new LoggedRuntimeException("Error was occurred when executing stateful session",
                    e, log);
        }
    }
View Full Code Here

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

        return view;
    }

    private void assertRuleBackendRuntimeFactoryNull(RuleBackendRuntimeFactory factory) {
        if (factory == null) {
            throw new LoggedRuntimeException("Given RuleBackendRuntimeFactory is null", log);
        }
    }
View Full Code Here

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

        }
    }

    private void assertPropertyDescriptionCorrect(PropertyDescription propertyDescription) {
        if (propertyDescription == null) {
            throw new LoggedRuntimeException("Given provider property is null", log);
        }
        String name = propertyDescription.getName();
        if (name == null || "".equals(name.trim())) {
            throw new LoggedRuntimeException("Given provider property name is null or empty", log);
        }
    }
View Full Code Here

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

        }
    }

    private void assertResourceDescriptionNull(ResourceDescription resourceDescription) {
        if (resourceDescription == null) {
            throw new LoggedRuntimeException("Given adapter description 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("RuleEngine 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 assertRuleSetNull(RuleSetDescription ruleSetDescription) {
        if (ruleSetDescription == null) {
            throw new LoggedRuntimeException("Given RuleSetDescription 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.