From: Nick Burch Date: Thu, 21 Jul 2011 14:37:50 +0000 (+0000) Subject: Tweak the error message to make it clearer how one should work with this part X-Git-Tag: REL_3_8_BETA4~103 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0e44f2040f0a42d770ae7d7f8d23e69c834aa781;p=poi.git 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 --- 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