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:
HSLFReadException,HSSFReadException,HWPFReadException,XSLFReadException,XSSFReadException,XWPFReadException
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:
- 5.5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPOIException(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 Details
-
POIException
Create a newPOIExceptionwith the specified message.- Parameters:
msg- The error message for the exception.
-
POIException
Create a newPOIExceptionwith the specified cause.- Parameters:
cause- the cause of this exception
-
POIException
Create a newPOIExceptionwith the specified message and cause.- Parameters:
msg- The error message for the exception.cause- the cause of this exception
-