Examples of InvalidDefinitionException


Examples of com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException

    XmlObject obj = loader.loadXmlObject( loader.getBaseURI(), null );
    applicationDocument = ( ApplicationDocument )obj.changeType( ApplicationDocument.type );
    }
    catch( Exception e )
    {
      throw new InvalidDefinitionException( e );
    }

    if( !loader.isAborted() )
    {
      super.loadSchemaTypes( loader );
View Full Code Here

Examples of com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException

    {
    definition = wsdlReader.readWSDL( loader );
    }
    catch( WSDLException e )
    {
      throw new InvalidDefinitionException( e );
    }

    if( !loader.isAborted() )
    {
      super.loadSchemaTypes( loader );
View Full Code Here

Examples of com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException

      if( e instanceof XmlException )
      {
        XmlError error = ( ( XmlException )e ).getError();
        if( error != null )
        {
          InvalidDefinitionException ex = new InvalidDefinitionException( ( XmlException )e );
          ex.setMessage( "Error loading [" + url + "]" );
          throw ex;
        }
      }

      log.error( "Failed to load url [" + url + "]" );
      throw new InvalidDefinitionException( "Error loading [" + url + "]: " + e );
    }
  }
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

    @Override
    public void validateDefinition() throws QuickFixException {
        super.validateDefinition();
       
        if (AuraTextUtil.isNullEmptyOrWhitespace(name)) {
            throw new InvalidDefinitionException("<aura:example> must have attribute 'name'.", getLocation());
        }
       
        if (AuraTextUtil.isNullEmptyOrWhitespace(label)) {
            throw new InvalidDefinitionException("<aura:example> must have attribute 'label'.", getLocation());
        }
       
        if (AuraTextUtil.isNullEmptyOrWhitespace(description)) {
            throw new InvalidDefinitionException("<aura:example> must contain a description.", getLocation());
        }
       
        if (!ref.exists()) {
            throw new InvalidDefinitionException(String.format("<aura:example> reference component %s does not exist.", ref.toString()), getLocation());
        }
    }
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

   
    @Override
    public void validateDefinition() throws QuickFixException {
        super.validateDefinition();
        if (AuraTextUtil.isNullEmptyOrWhitespace(description)) {
            throw new InvalidDefinitionException("<aura:description> must contain a description.", getLocation());
        }
    }
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

    @Override
    public void validateDefinition() throws QuickFixException {
        super.validateDefinition();
       
        if (descriptionDefs.isEmpty()) {
            throw new InvalidDefinitionException("<aura:documentation> must contain at least one <aura:description>", getLocation());
        }
    }
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

    @Override
    public void validateDefinition() throws QuickFixException {
        super.validateDefinition();

        if (includeRefs == null || includeRefs.isEmpty()) {
            throw new InvalidDefinitionException("aura:library must contain at least one aura:include attribute",
                    getLocation());
        }

        Set<String> names = Sets.newHashSet();
        for (IncludeDefRef include : includeRefs) {
            if (!names.add(include.getName())) {
                throw new InvalidDefinitionException(String.format("%s with duplicate name found in library: %s",
                        IncludeDefRefHandler.TAG, include.getName()), getLocation());
            }
            List<DefDescriptor<IncludeDef>> imports = include.getImports();
            if (imports != null) {
                for (DefDescriptor<IncludeDef> imported : imports) {
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

                }
            }
        }

        if (ordered.size() != unordered.size()) {
            throw new InvalidDefinitionException(
                    "aura:library: Unable to order include statements by dependency tree.", getLocation());
        }

        return ordered;
    }
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

            return getDefaultInvocation();
        } else if (object instanceof Map) {
            Map<?, ?> methodMap = (Map<?, ?>) object;
            String name = (String) methodMap.get("name");
            if (name == null) {
                throw new InvalidDefinitionException("A mock's stubbed method must specify 'name'", getLocation());
            }
            List<?> params = (List<?>) methodMap.get("params");
            String typeStr = (String) methodMap.get("type");
            Class<?> type = Object.class;
            if (typeStr != null) {
View Full Code Here

Examples of org.auraframework.throwable.quickfix.InvalidDefinitionException

                if (error != null) {
                    return new ThrowsExceptionClass<>(error);
                }
            }
        }
        throw new InvalidDefinitionException("Mock answer must specify either 'value' or 'error'", null /* getLocation() */);
    }
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.