Package org.apache.poi.openxml4j.exceptions

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


      this.partMarshallers.put(new ContentType(
          ContentTypes.CORE_PROPERTIES_PART),
          new ZipPackagePropertiesMarshaller());
    } catch (InvalidFormatException e) {
      // Should never happen
      throw new OpenXML4JRuntimeException(
          "Package.init() : this exception should never happen, " +
          "if you read this message please send a mail to the developers team. : " +
          e.getMessage()
      );
    }
View Full Code Here


      throws InvalidFormatException {
    if (checkConformance) {
      throwExceptionIfInvalidPartUri(uri);
    } else {
      if (!PackagingURIHelper.PACKAGE_ROOT_URI.equals(uri)) {
        throw new OpenXML4JRuntimeException(
            "OCP conformance must be check for ALL part name except special cases : ['/']");
      }
    }
    this.partNameURI = uri;
    this.isRelationship = isRelationshipPartURI(this.partNameURI);
View Full Code Here

    if (checkConformance) {
      throwExceptionIfInvalidPartUri(partURI);
    } else {
      if (!PackagingURIHelper.PACKAGE_ROOT_URI.equals(partURI)) {
        throw new OpenXML4JRuntimeException(
            "OCP conformance must be check for ALL part name except special cases : ['/']");
      }
    }
    this.partNameURI = partURI;
    this.isRelationship = isRelationshipPartURI(this.partNameURI);
View Full Code Here

      this.partMarshallers.put(new ContentType(
          ContentTypes.CORE_PROPERTIES_PART),
          new ZipPackagePropertiesMarshaller());
    } catch (InvalidFormatException e) {
      // Should never happen
      throw new OpenXML4JRuntimeException(
          "Package.init() : this exception should never happen, if you read this message please send a mail to the developers team.");
    }
  }
View Full Code Here

     * 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 && this.container.getPart(partName) != null) {
      throw new OpenXML4JRuntimeException(
          "Rule M2.4 exception : this error should NEVER happen, if so please send a mail to the developers team, thanks !");
    } else {
      return null;
    }
  }
View Full Code Here

      this.partMarshallers.put(new ContentType(
          ContentTypes.CORE_PROPERTIES_PART),
          new ZipPackagePropertiesMarshaller());
    } catch (InvalidFormatException e) {
      // Should never happen
      throw new OpenXML4JRuntimeException(
          "Package.init() : this exception should never happen, if you read this message please send a mail to the developers team.");
    }
  }
View Full Code Here

                    + defaultPartMarshaller);
        }
      }
      zos.close();
    } catch (Exception e) {
            throw new OpenXML4JRuntimeException(
                    "Fail to save: an error occurs while saving the package : "
              + e.getMessage(), e);
    }
  }
View Full Code Here

      this.partMarshallers.put(new ContentType(
          ContentTypes.CORE_PROPERTIES_PART),
          new ZipPackagePropertiesMarshaller());
    } catch (InvalidFormatException e) {
      // Should never happen
      throw new OpenXML4JRuntimeException(
          "Package.init() : this exception should never happen, " +
          "if you read this message please send a mail to the developers team. : " +
          e.getMessage()
      );
    }
View Full Code Here

     * 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 && this.container.getPart(partName) != null) {
      throw new OpenXML4JRuntimeException(
          "Rule M2.4 exception : this error should NEVER happen, if so please send a mail to the developers team, thanks !");
    }
    return null;
  }
View Full Code Here

                    + defaultPartMarshaller);
        }
      }
      zos.close();
    } catch (Exception e) {
            throw new OpenXML4JRuntimeException(
                    "Fail to save: an error occurs while saving the package : "
              + e.getMessage(), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException

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.