Package eu.planets_project.ifr.core.services.migration.genericwrapper1.exceptions

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper1.exceptions.MigrationPathConfigException


    uriList.add(new URI(getAttributeValue(uriNode,
      ConfigurationFileTagsV1.VALUE_ATTRIBUTE)));
      }

      if (uriList.isEmpty()) {
    throw new MigrationPathConfigException("The element '"
      + pathNode.getNodeName()
      + "' has no URI elements in the '" + uriListElementName
      + "' list.");
      }
      return uriList;
  } catch (Exception exception) {
      throw new MigrationPathConfigException(
        "Failed reading URIs from the '" + uriListElementName
          + "' URI list element in the element '"
          + pathNode.getNodeName() + "'", exception);
  }
    }
View Full Code Here


  final NamedNodeMap attributes = elementWithAttributes.getAttributes();

  final Node attributeNode = attributes.getNamedItem(attributeName);
  if (attributeNode == null) {
      throw new MigrationPathConfigException("The attribute '"
        + attributeName + "' is not defined in element '"
        + elementWithAttributes.getNodeName() + "'");
  }
  final String attributeValue = attributeNode.getNodeValue();
  return attributeValue;
View Full Code Here

        .getNamedItem(ConfigurationFileTagsV1.VERSION_ATTRIBUTE);

      versionNumber = versionNode.getNodeValue();

  } catch (NullPointerException npe) {
      throw new MigrationPathConfigException(
        "Could not access the 'version' attribute of the 'serviceWrapping' element in the configuration document.",
        npe);

  } catch (Exception exception) {
      throw new MigrationPathConfigException(
        "Validation of the configuration file version number failed.",
        exception);
  }

  if (!ConfigurationFileTagsV1.CONFIGURATION_FORMAT_VERSION.toLowerCase()
    .equals(versionNumber.toLowerCase())) {
      throw new MigrationPathConfigException(
        "Invalid version number in configuration document '"
          + versionNumber
          + "'. Expected version '"
          + ConfigurationFileTagsV1.CONFIGURATION_FORMAT_VERSION);
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.ifr.core.services.migration.genericwrapper1.exceptions.MigrationPathConfigException

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.