]> source.dussan.org Git - poi.git/commitdiff
Tweak the error message to make it clearer how one should work with this part
authorNick Burch <nick@apache.org>
Thu, 21 Jul 2011 14:37:50 +0000 (14:37 +0000)
committerNick Burch <nick@apache.org>
Thu, 21 Jul 2011 14:37:50 +0000 (14:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149196 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/openxml4j/opc/internal/PackagePropertiesPart.java

index e0b9a3721dd6ef721e9ae5908889b19e2550dabd..44191e14437c9c19017af71cf22f830c00cd61f6 100644 (file)
@@ -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