Package org.apache.poi.hslf
Class HSLFReadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.poi.POIException
org.apache.poi.hslf.HSLFReadException
- All Implemented Interfaces:
Serializable
An exception that indicates a problem reading a ppt file. Usually, a more
specific exception will be wrapped as the cause.
This exception is only used by some new methods.
Historically, POI has used RuntimeException for most of its
exceptions, but this is not a good practice. This class is a checked
class that extends Exception so needs to be explicitly
caught or declared in the method signature.
- Since:
- 5.5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHSLFReadException(String msg) Create a newHSLFReadExceptionwith theStringspecified as an error message.HSLFReadException(String msg, Throwable cause) Create a newHSLFReadExceptionwith theStringspecified as an error message and the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HSLFReadException
Create a newHSLFReadExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
HSLFReadException
Create a newHSLFReadExceptionwith theStringspecified as an error message and the cause.- Parameters:
msg- The error message for the exception.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-