Package org.apache.poi
Class POIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.poi.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 usedRuntimeExceptionfor most of its exceptions, but this is not a good practice. This class is a checked class that extendsExceptionso needs to be explicitly caught or declared in the method signature.- Since:
- POI 5.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description POIException(String msg)Create a newPOIExceptionwith the specified message.POIException(String msg, Throwable cause)Create a newPOIExceptionwith the specified message and cause.POIException(Throwable cause)Create a newPOIExceptionwith the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
POIException
public POIException(String msg)
Create a newPOIExceptionwith the specified message.- Parameters:
msg- The error message for the exception.
-
POIException
public POIException(Throwable cause)
Create a newPOIExceptionwith the specified cause.- Parameters:
cause- the cause of this exception
-
-