aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/EncryptedDocumentException.java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-07-21 19:35:47 +0000
committerNick Burch <nick@apache.org>2008-07-21 19:35:47 +0000
commiteaf60c3114377f2ce9346c3bb26a569bec2bcdc8 (patch)
tree0c421285961e8c4cec1219d5e309e68ee86c7f58 /src/java/org/apache/poi/EncryptedDocumentException.java
parent26abbc707b1e938abf376d35d76252d67a52c0be (diff)
downloadpoi-eaf60c3114377f2ce9346c3bb26a569bec2bcdc8.tar.gz
poi-eaf60c3114377f2ce9346c3bb26a569bec2bcdc8.zip
Fix bug #45437 - Detect encrypted word documents, and throw an EncryptedDocumentException instead of a OOM
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@678539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/EncryptedDocumentException.java')
-rw-r--r--src/java/org/apache/poi/EncryptedDocumentException.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/EncryptedDocumentException.java b/src/java/org/apache/poi/EncryptedDocumentException.java
new file mode 100644
index 0000000000..4922d1c81d
--- /dev/null
+++ b/src/java/org/apache/poi/EncryptedDocumentException.java
@@ -0,0 +1,24 @@
+/* ====================================================================
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+==================================================================== */
+package org.apache.poi;
+
+public class EncryptedDocumentException extends IllegalStateException
+{
+ public EncryptedDocumentException(String s) {
+ super(s);
+ }
+}