Examples of CharacteristicNotAvailableException


Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

    // javadoc inherited
    public ImmutableMetaDataValue getCharacteristic(String path)
            throws CharacteristicNotAvailableException {
        if (path == null || path.trim().length() == 0) {
            throw new CharacteristicNotAvailableException(
                        exceptionLocalizer.format("service-def-path-failure",
                                                  new String[] {path,
                                                                getName()}));
        }
        // let the CharacteristicAccessor do the work
View Full Code Here

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

         * This method should be invoked to assert that the path has been
         * resolved correctly. i.e the structure has been navigated
         */
        private void assertAllNodesVisisted() {
            if (!processor.isEmpty()) {
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

            }
        }

        private void assertFieldAvaliable(Map fields, String field) {
            if (fields.get(field) == null) {
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

        private void assertFieldNext() {
            if (!processor.isPath()) {
                // We need the next path node to be a predicate but it is
                // a key. Throw an excpetion
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

        }
        private void assertPredicateNext() {
            if (processor.isPath()) {
                // We need the next path node to be a predicate but it is
                // a key. Throw an excpetion
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException

        };

        private void assertIndexValid(Collection collection, int index) {
            if (index < 0 || index >= collection.size()) {
                // index is out of bounds
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
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.