Package org.apache.poi.hssf
Class HSSFReadException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.poi.POIException
-
- org.apache.poi.hssf.HSSFReadException
-
- All Implemented Interfaces:
Serializable
public class HSSFReadException extends POIException
An exception that indicates a problem reading an xls 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
RuntimeExceptionfor 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 HSSFReadException(String msg)Create a newHSSFReadExceptionwith theStringspecified as an error message.HSSFReadException(String msg, Throwable cause)Create a newHSSFReadExceptionwith 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 Detail
-
HSSFReadException
public HSSFReadException(String msg)
Create a newHSSFReadExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
HSSFReadException
public HSSFReadException(String msg, Throwable cause)
Create a newHSSFReadExceptionwith 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.)
-
-