Package org.wso2.carbon.rule.core

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


        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

        return view;
    }

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

        }
    }

    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

        }
    }

    private void assertResourceDescriptionNull(ResourceDescription resourceDescription) {
        if (resourceDescription == null) {
            throw new LoggedRuntimeException("Given adapter description is null", log);
        }
    }
View Full Code Here

        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

        }
    }

    private void assertRuleSetNull(RuleSetDescription ruleSetDescription) {
        if (ruleSetDescription == null) {
            throw new LoggedRuntimeException("Given RuleSetDescription is null", log);
        }
    }
View Full Code Here

        }
    }

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

        }
    }

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

        }
    }

    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

TOP

Related Classes of org.wso2.carbon.rule.core.LoggedRuntimeException

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.