Package nom.tam.fits
Class PaddingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
nom.tam.fits.FitsException
nom.tam.fits.PaddingException
- All Implemented Interfaces:
Serializable
This exception is thrown if an error is found reading the padding following a
valid FITS HDU. This padding is required by the FITS standard, but some FITS
writes forego writing it. To access such data users can use something like:
Fits f = new Fits("somefile");
try {
f.read();
} catch (PaddingException e) {
f.addHDU(e.getHDU());
}
to ensure that a truncated HDU is included in the FITS object.
Generally the FITS file have already added any HDUs prior to the truncated
one.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
serial version id.private BasicHDU
<?> The HDU where the error happened. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserial version id.- See Also:
-
truncatedHDU
The HDU where the error happened.
-
-
Constructor Details
-
PaddingException
- Throws:
FitsException
-
-
Method Details
-
getTruncatedHDU
-
updateHeader
- Throws:
FitsException
-