Examples of MissingModelVersionException


Examples of org.sonatype.nexus.configuration.ModelUtils.MissingModelVersionException

          final Xpp3Dom dom = Xpp3DomBuilder.build(r);
          final Xpp3Dom versionNode = dom.getChild(fieldName);
          if (versionNode != null) {
            final String originalFileVersion = versionNode.getValue();
            if (Strings.isNullOrEmpty(originalFileVersion)) {
              throw new MissingModelVersionException("Passed in XML model have empty " + fieldName + " node");
            }
            return originalFileVersion;
          }
          else {
            throw new MissingModelVersionException("Passed in XML model does not have " + fieldName + " node");
          }
        }
        catch (XmlPullParserException e) {
          throw new CorruptModelException("Passed in XML model cannot be parsed", 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.