Package org.apache.poi.xslf
Class XSLFReadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.poi.POIException
org.apache.poi.xslf.XSLFReadException
- All Implemented Interfaces:
Serializable
An exception that indicates a problem reading a pptx 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
ConstructorsConstructorDescriptionXSLFReadException(String msg) Create a newXSLFReadExceptionwith theStringspecified as an error message.XSLFReadException(String msg, Throwable cause) Create a newXSLFReadExceptionwith 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
-
XSLFReadException
Create a newXSLFReadExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
XSLFReadException
Create a newXSLFReadExceptionwith 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.)
-