Examples of InvalidOperationException


Examples of org.apache.poi.openxml4j.exceptions.InvalidOperationException

    throw new InvalidOperationException("Operation not authorized");
  }

  @Override
  protected OutputStream getOutputStreamImpl() {
    throw new InvalidOperationException(
        "Can't use output stream to set properties !");
  }
View Full Code Here

Examples of org.apache.poi.openxml4j.exceptions.InvalidOperationException

        "Can't use output stream to set properties !");
  }

  @Override
  public boolean save(OutputStream zos) throws OpenXML4JException {
    throw new InvalidOperationException("Operation not authorized");
  }
View Full Code Here

Examples of org.apache.poi.openxml4j.exceptions.InvalidOperationException

    throw new InvalidOperationException("Operation not authorized");
  }

  @Override
  public boolean load(InputStream ios) throws InvalidFormatException {
    throw new InvalidOperationException("Operation not authorized");
  }
View Full Code Here

Examples of org.apache.poi.openxml4j.exceptions.InvalidOperationException

            deleteDefaultContentTypeFlag = false;
            break;
          }
        }
      } catch (InvalidFormatException e) {
        throw new InvalidOperationException(e.getMessage());
      }
    }

    // Remove the default content type, no other part use this content type.
    if (deleteDefaultContentTypeFlag) {
      this.defaultContentType.remove(extensionToDelete);
    }

    /*
     * Check rule 2.4: The package implementer shall require that the
     * Content Types stream contain one of the following for every part in
     * the package: One matching Default element One matching Override
     * element Both a matching Default element and a matching Override
     * element, in which case the Override element takes precedence.
     */
    if (this.container != null) {
      try {
        for (PackagePart part : this.container.getParts()) {
          if (!part.getPartName().equals(partName)
              && this.getContentType(part.getPartName()) == null)
            throw new InvalidOperationException(
                "Rule M2.4 is not respected: Nor a default element or override element is associated with the part: "
                    + part.getPartName().getName());
        }
      } catch (InvalidFormatException e) {
        throw new InvalidOperationException(e.getMessage());
      }
    }
  }
View Full Code Here

Examples of org.apache.tajo.datum.exception.InvalidOperationException

  public BooleanDatum equalsTo(Datum datum) {
    switch (datum.type()) {
    case BIT:
      return DatumFactory.createBool(this.val == (((BitDatum) datum).val));
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

Examples of org.apache.tuscany.sca.interfacedef.InvalidOperationException

           
            boolean nonBlocking = method.isAnnotationPresent(OneWay.class);
            ConversationSequence conversationSequence = ConversationSequence.CONVERSATION_NONE;
            if (method.isAnnotationPresent(EndsConversation.class)) {
                if (!conversational) {
                    throw new InvalidOperationException(
                                                        "Method is marked as end conversation but contract is not conversational",
                                                        method);
                }
                conversationSequence = ConversationSequence.CONVERSATION_END;
            } else if (conversational) {
View Full Code Here

Examples of org.apache.tuscany.sca.interfacedef.InvalidOperationException

            } // end if

            boolean nonBlocking = method.isAnnotationPresent(OneWay.class);
            if (nonBlocking) {
                if (!(returnType == void.class)) {
                    throw new InvalidOperationException(
                                                        "Method should return 'void' when declared with an @OneWay annotation. " + method,
                                                        method);
                }
                if (!(faultTypes.length == 0)) {
                    throw new InvalidOperationException(
                                                        "Method should not declare exceptions with an @OneWay annotation. " + method,
                                                        method);
                }
            }
View Full Code Here

Examples of org.docx4j.openpackaging.exceptions.InvalidOperationException

      if (em == null ) {
        getEmulator();
      }
      ListNumberingDefinition existingLnd = instanceListDefinitions.get( Long.toString(numId) );
      if (existingLnd==null) {
        throw new InvalidOperationException("List " + numId + " does not exist");
      }
      BigInteger abstractNumIdVal = existingLnd.getNumNode().getAbstractNumId().getVal();
     
      // Generate the new <w:num
      long newNumId = instanceListDefinitions.size() + 1;
View Full Code Here

Examples of org.openxml4j.exceptions.InvalidOperationException

  /**
   * Save this document in the specified file.
   */
  public void save(File file) throws IOException {
    throw new InvalidOperationException("Method not implemented !");
  }
View Full Code Here

Examples of unbbayes.controller.exception.InvalidOperationException

      throws EntityInstanceAlreadyExistsException,
      InvalidOperationException, DuplicatedNameException,
      ReservedWordException {

    if (entity.isOrdereable()) {
      throw new InvalidOperationException();
    }

    checkName(nameInstance);

    if (multiEntityBayesianNetwork.getObjectEntityContainer()
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.