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
This commit is contained in:
parent
f6e2b0a90d
commit
22bf8bdef5
@ -596,7 +596,7 @@ public final class PackagePropertiesPart extends PackagePart implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected InputStream getInputStreamImpl() {
|
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
|
@Override
|
||||||
@ -607,12 +607,12 @@ public final class PackagePropertiesPart extends PackagePart implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean save(OutputStream zos) {
|
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
|
@Override
|
||||||
public boolean load(InputStream ios) {
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user