From 0e44f2040f0a42d770ae7d7f8d23e69c834aa781 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 21 Jul 2011 14:37:50 +0000 Subject: [PATCH] Tweak the error message to make it clearer how one should work with this part git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149196 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/openxml4j/opc/internal/PackagePropertiesPart.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java index e0b9a3721d..44191e1443 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java @@ -596,7 +596,7 @@ public final class PackagePropertiesPart extends PackagePart implements @Override protected InputStream getInputStreamImpl() { - throw new InvalidOperationException("Operation not authorized"); + throw new InvalidOperationException("Operation not authorized. This part may only be manipulated using the getters and setters on PackagePropertiesPart"); } @Override @@ -607,12 +607,12 @@ public final class PackagePropertiesPart extends PackagePart implements @Override public boolean save(OutputStream zos) { - throw new InvalidOperationException("Operation not authorized"); + throw new InvalidOperationException("Operation not authorized. This part may only be manipulated using the getters and setters on PackagePropertiesPart"); } @Override public boolean load(InputStream ios) { - throw new InvalidOperationException("Operation not authorized"); + throw new InvalidOperationException("Operation not authorized. This part may only be manipulated using the getters and setters on PackagePropertiesPart"); } @Override -- 2.39.5