Class XSLFReadException

All Implemented Interfaces:
Serializable

public class XSLFReadException extends POIException
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 Details

    • XSLFReadException

      public XSLFReadException(String msg)
      Create a new XSLFReadException with the String specified as an error message.
      Parameters:
      msg - The error message for the exception.
    • XSLFReadException

      public XSLFReadException(String msg, Throwable cause)
      Create a new XSLFReadException with the String specified 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 the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)