Class POIException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    HSSFReadException

    public class POIException
    extends Exception
    Indicates a generic POI exception. This is not commonly used in POI but this is intended to be a base class for some new POI exceptions. 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:
    POI 5.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • POIException

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

        public POIException​(Throwable cause)
        Create a new POIException with the specified cause.
        Parameters:
        cause - the cause of this exception
      • POIException

        public POIException​(String msg,
                            Throwable cause)
        Create a new POIException with the specified message and cause.
        Parameters:
        msg - The error message for the exception.
        cause - the cause of this exception