Package it.freedomotic.exceptions

Examples of it.freedomotic.exceptions.VariableResolutionException


                    String replacer = command.getProperty(referenceToResolve);
                    if (((replacer != null) && !replacer.isEmpty())) {
                        String propertyValueResolved = propertyValue.replaceFirst(occurrence, replacer);
                        aProperty.setValue(propertyValueResolved);
                    } else {
                        throw new VariableResolutionException("Variable '" + referenceToResolve
                                + "' cannot be resolved in command '" + command.getName() + "'.\n"
                                + "Availabe tokens are: " + context.toString());
                    }
                }
            }
View Full Code Here


                            tokenKey.length()); //cutting out the first char '@'

                    String tokenValue = trigger.getPayload().getStatementValue(tokenKey);

                    if (tokenValue == null) {
                        throw new VariableResolutionException("Variable '" + tokenValue + "' cannot be resolved in trigger '"
                                + trigger.getName() + "'.\n" + "Availabe tokens are: "
                                + context.toString());
                    }

                    //replace an @token.property with its real value
View Full Code Here

TOP

Related Classes of it.freedomotic.exceptions.VariableResolutionException

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.