Add (and throw) an exception if the powerpoint file is corrupt in a way that some seem to be (first record is of type 0000, and length is 0xFFFF)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@365616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
730cbcd0d3
commit
427c2619da
@ -1,34 +0,0 @@
|
|||||||
|
|
||||||
/* ====================================================================
|
|
||||||
Copyright 2002-2004 Apache Software Foundation
|
|
||||||
|
|
||||||
Licensed 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.hslf.exceptions;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This exception is thrown when we try to open a PowerPoint file, and
|
|
||||||
* something is fundamentally broken about it.
|
|
||||||
*
|
|
||||||
* @author Nick Burch
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class CorruptPowerPointFileException extends IllegalStateException
|
|
||||||
{
|
|
||||||
public CorruptPowerPointFileException(String s) {
|
|
||||||
super(s);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user